Bugfix: Change logic of completed_count property for group (#814) #1144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install --group format | |
| - run: black --check . | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install ".[all]" --group type-check | |
| - run: mypy | |
| isort: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install --group lint | |
| - run: isort --check dramatiq tests | |
| flake8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install --group lint | |
| - run: flake8 dramatiq tests examples | |
| documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install ".[all]" --group docs | |
| - run: cd docs && make html | |
| build-unix: | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-24.04"] | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| concurrency: ["cpython", "gevent"] | |
| runs-on: ${{ matrix.os }} | |
| name: test on ${{ matrix.python }} (${{ matrix.os }}, ${{ matrix.concurrency }}) | |
| services: | |
| memcached: | |
| image: memcached:latest | |
| ports: | |
| - 11211:11211 | |
| rabbitmq: | |
| image: rabbitmq:3 | |
| env: | |
| RABBITMQ_DEFAULT_USER: "dramatiq" | |
| RABBITMQ_DEFAULT_PASS: "dramatiq" | |
| ports: | |
| - 5672:5672 | |
| options: '--hostname "rmq" --health-cmd "rabbitmqctl status" --health-interval 10s --health-timeout 10s --health-retries 3 --health-start-period 60s' | |
| redis: | |
| image: redis:latest | |
| ports: | |
| - 6379:6379 | |
| env: | |
| RABBITMQ_USERNAME: "dramatiq" | |
| RABBITMQ_PASSWORD: "dramatiq" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get remove libhashkit2 libmemcached11 || true | |
| sudo apt-get install -y libmemcached-dev | |
| - run: pip install -e '.[all]' --group test | |
| - run: pytest --benchmark-skip | |
| if: ${{ matrix.concurrency == 'cpython' }} | |
| - run: python pytest-gevent.py --benchmark-skip | |
| if: ${{ matrix.concurrency == 'gevent' }} |