| 1 | name: Checks |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | |
| 7 | jobs: |
| 8 | build: |
| 9 | |
| 10 | runs-on: ${{ matrix.os }} |
| 11 | strategy: |
| 12 | matrix: |
| 13 | python-version: ['3.8', '3.11'] |
| 14 | os: [macos-latest, ubuntu-latest, windows-latest] |
| 15 | |
| 16 | steps: |
| 17 | - uses: actions/checkout@v3 |
| 18 | - name: Set up Python ${{ matrix.python-version }} |
| 19 | uses: actions/setup-python@v4 |
| 20 | with: |
| 21 | python-version: ${{ matrix.python-version }} |
| 22 | - name: Install dependencies |
| 23 | run: | |
| 24 | # prerequisites |
| 25 | python -m pip install --upgrade pip wheel |
| 26 | python -m pip install coverage flake8 pytest |
| 27 | # show installed packages |
| 28 | pip freeze |
| 29 | - name: Install multipletau |
| 30 | run: | |
| 31 | pip install . |
| 32 | - name: Lint with flake8 |
| 33 | run: | |
| 34 | flake8 --exclude _version.py . |
| 35 | - name: Test with pytest |
| 36 | run: | |
| 37 | coverage run --source=multipletau -m pytest tests |
| 38 | - name: Upload coverage to Codecov |
| 39 | uses: codecov/codecov-action@v3 |