⬆️ Bump actions/upload-artifact from 4.6.0 to 5.0.0 #55
Workflow file for this run
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install dependencies | |
| run: pip install nox | |
| - name: Run tests | |
| run: nox -s test-${{ matrix.python-version }} | |
| - name: "Upload artifact" | |
| uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" | |
| with: | |
| name: coverage-data-${{ matrix.python-version }} | |
| path: ".coverage.*" | |
| include-hidden-files: true | |
| if-no-files-found: error | |
| coverage: | |
| if: always() | |
| runs-on: "ubuntu-latest" | |
| needs: tests | |
| steps: | |
| - name: "Checkout repository" | |
| uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" | |
| - name: "Setup Python" | |
| uses: "actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234" | |
| with: | |
| python-version: "3.x" | |
| - name: "Install coverage" | |
| run: "python -m pip install --upgrade coverage" | |
| - name: "Download artifact" | |
| uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | |
| with: | |
| pattern: coverage-data* | |
| merge-multiple: true | |
| - name: "Combine & check coverage" | |
| run: | | |
| python -m coverage combine | |
| python -m coverage html --skip-covered --skip-empty | |
| python -m coverage report --ignore-errors --show-missing --fail-under=77 | |
| - name: "Upload report" | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 | |
| with: | |
| name: coverage-report | |
| path: htmlcov |