build: fix tox failures #101
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
| # Runs tests via tox | |
| # Runs on pull requests to main | |
| name: Test on pull request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 3 | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: "Set up Python ${{ matrix.python-version }}" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - name: Install build meta-dependencies | |
| run: | | |
| pip install tox poetry tox-gh-actions | |
| - name: Test with tox | |
| run: | | |
| tox | |
| # - name: Coveralls Python | |
| # uses: AndreMiras/coveralls-python-action@v20201129 | |
| # with: | |
| # #github-token: #${{ secrets.GITHUB_TOKEN }} | |
| # github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| - uses: codecov/codecov-action@v4 | |
| with: | |
| verbose: true # optional (default = false) | |
| token: ${{ secrets.CODECOV_TOKEN }} |