| 1 |
name: integration |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
|
| 7 |
checks: |
| 8 |
runs-on: ubuntu-latest |
| 9 |
strategy: |
| 10 |
max-parallel: 8 |
| 11 |
matrix: |
| 12 |
check: [bluecheck, doc8, docs, flake8, isortcheck, mypy, pylint, rstcheck] |
| 13 |
|
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v3 |
| 16 |
- name: Set up Python |
| 17 |
uses: actions/setup-python@v4 |
| 18 |
with: |
| 19 |
python-version: '3.11' |
| 20 |
- name: Install dependencies |
| 21 |
run: | |
| 22 |
pip install --upgrade pip |
| 23 |
pip install tox |
| 24 |
- name: Run checks with tox |
| 25 |
run: | |
| 26 |
tox -e ${{ matrix.check }} |
| 27 |
|
| 28 |
tests: |
| 29 |
needs: checks |
| 30 |
runs-on: ${{ matrix.os }} |
| 31 |
strategy: |
| 32 |
max-parallel: 8 |
| 33 |
matrix: |
| 34 |
os: [ubuntu-latest, macos-latest, windows-latest] |
| 35 |
python-version: [3.8, 3.9, '3.10', 3.11] |
| 36 |
|
| 37 |
steps: |
| 38 |
- name: Set up Python ${{ matrix.python-version }} x64 |
| 39 |
uses: actions/setup-python@v4 |
| 40 |
with: |
| 41 |
python-version: ${{ matrix.python-version }} |
| 42 |
architecture: x64 |
| 43 |
|
| 44 |
- uses: actions/checkout@v3 |
| 45 |
|
| 46 |
- name: Install tox |
| 47 |
run: | |
| 48 |
pip install --upgrade pip |
| 49 |
pip install tox |
| 50 |
|
| 51 |
- name: Test with tox |
| 52 |
run: tox -e py |