Bump pip from 24.0 to 24.3.1 in /.github/workflows #45
This file contains 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, pull_request] | |
jobs: | |
tests: | |
env: | |
FORCE_COLOR: "1" | |
PRE_COMMIT_COLOR: "always" | |
strategy: | |
fail-fast: false | |
name: "Integration testing" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up environment" | |
run: | | |
docker compose build --build-arg MULTIPLE_PYTHON=True | |
docker compose up -d | |
- name: "Wait for docker to finish building" | |
run: sleep 10 | |
- name: "Run tests" | |
run: docker compose exec django_test uv run --prerelease=allow nox -r --force-color | |
- name: Upload documentation | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: docs/_build | |
- name: Combine coverage data and display human readable report | |
run: | | |
docker compose exec django_test uv run --prerelease=allow nox --session "coverage(django='5.0')" | |
- name: Create coverage report and copy to artifacts | |
run: | | |
docker compose exec django_test uv run --prerelease=allow nox --session "coverage(django='5.0')" -- xml | |
docker compose exec django_test cat coverage.xml > coverage.xml | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: "Shut down environment" | |
run: docker compose down |