| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - master |
| 10 | |
| 11 | jobs: |
| 12 | build: |
| 13 | runs-on: ubuntu-latest |
| 14 | |
| 15 | strategy: |
| 16 | matrix: |
| 17 | python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] |
| 18 | |
| 19 | steps: |
| 20 | - name: Checkout Repository |
| 21 | uses: actions/checkout@v2 |
| 22 | |
| 23 | - name: Set up Python ${{ matrix.python-version }} |
| 24 | uses: actions/setup-python@v2 |
| 25 | with: |
| 26 | python-version: ${{ matrix.python-version }} |
| 27 | |
| 28 | - name: Install tox |
| 29 | run: pip install tox |
| 30 | |
| 31 | - name: Run tox |
| 32 | run: tox |
| 33 | |
| 34 | - name: Upload coverage reports to Codecov |
| 35 | uses: codecov/[email protected] |
| 36 | with: |
| 37 | token: ${{ secrets.CODECOV_TOKEN }} |
| 38 | file: coverage.xml |