|
1 | 1 | name: CI |
2 | 2 | on: [push, pull_request] |
3 | 3 | jobs: |
4 | | - lint: |
5 | | - runs-on: ubuntu-24.04 |
6 | | - name: lint |
| 4 | + black: |
| 5 | + runs-on: ubuntu-latest |
7 | 6 | steps: |
8 | | - - uses: actions/checkout@master |
9 | | - - uses: actions/setup-python@v5 |
| 7 | + - uses: actions/checkout@v6 |
| 8 | + - uses: actions/setup-python@v6 |
10 | 9 | with: |
11 | | - python-version: "3.13" |
12 | | - - run: | |
13 | | - sudo apt-get update |
14 | | - sudo apt-get remove libhashkit2 libmemcached11 || true |
15 | | - sudo apt-get install -y libmemcached-dev |
16 | | - - run: pip install tox |
17 | | - - run: tox -e lint |
18 | | - - run: tox -e docs |
| 10 | + python-version: "3.10" |
| 11 | + - run: pip install --group format |
| 12 | + - run: black --check . |
| 13 | + |
| 14 | + mypy: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v6 |
| 18 | + - uses: actions/setup-python@v6 |
| 19 | + with: |
| 20 | + python-version: "3.10" |
| 21 | + - run: pip install ".[all]" --group type-check |
| 22 | + - run: mypy |
| 23 | + |
| 24 | + isort: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v6 |
| 28 | + - uses: actions/setup-python@v6 |
| 29 | + with: |
| 30 | + python-version: "3.10" |
| 31 | + - run: pip install --group lint |
| 32 | + - run: isort --check dramatiq tests |
| 33 | + |
| 34 | + flake8: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v6 |
| 38 | + - uses: actions/setup-python@v6 |
| 39 | + with: |
| 40 | + python-version: "3.10" |
| 41 | + - run: pip install --group lint |
| 42 | + - run: flake8 dramatiq tests examples |
| 43 | + |
| 44 | + documentation: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v6 |
| 48 | + - uses: actions/setup-python@v6 |
| 49 | + with: |
| 50 | + python-version: "3.10" |
| 51 | + - run: pip install ".[all]" --group docs |
| 52 | + - run: cd docs && make html |
19 | 53 |
|
20 | 54 | build-unix: |
21 | 55 | timeout-minutes: 30 |
|
47 | 81 | ports: |
48 | 82 | - 6379:6379 |
49 | 83 |
|
| 84 | + env: |
| 85 | + RABBITMQ_USERNAME: "dramatiq" |
| 86 | + RABBITMQ_PASSWORD: "dramatiq" |
| 87 | + |
50 | 88 | steps: |
51 | | - - uses: actions/checkout@master |
52 | | - - uses: actions/setup-python@v5 |
| 89 | + - uses: actions/checkout@v6 |
| 90 | + - uses: actions/setup-python@v6 |
53 | 91 | with: |
54 | 92 | python-version: ${{ matrix.python }} |
55 | 93 | - run: | |
|
59 | 97 | - run: pip install -e '.[all]' --group test |
60 | 98 | - run: pytest --benchmark-skip |
61 | 99 | if: ${{ matrix.concurrency == 'cpython' }} |
62 | | - env: |
63 | | - RABBITMQ_USERNAME: "dramatiq" |
64 | | - RABBITMQ_PASSWORD: "dramatiq" |
65 | 100 | - run: python pytest-gevent.py --benchmark-skip |
66 | 101 | if: ${{ matrix.concurrency == 'gevent' }} |
67 | | - env: |
68 | | - RABBITMQ_USERNAME: "dramatiq" |
69 | | - RABBITMQ_PASSWORD: "dramatiq" |
|
0 commit comments