|
40 | 40 | strategy: |
41 | 41 | fail-fast: false |
42 | 42 | matrix: |
43 | | - django: [ "5.1", "4.2", "3.2" ] |
44 | | - python: [ "3.13", "3.12", "3.9" ] |
| 43 | + django: [ "51", "42" ] |
| 44 | + python: [ "3.13", "3.12" ] |
45 | 45 | exclude: |
46 | 46 | - python: 39 |
47 | 47 | django: 51 |
@@ -73,32 +73,27 @@ jobs: |
73 | 73 | run: uv python install --python-preference only-managed ${{ matrix.python }} |
74 | 74 |
|
75 | 75 | - name: Setup test suite |
76 | | - run: tox run -vv --notest --skip-missing-interpreters false |
| 76 | + run: tox run -vv --notest --skip-missing-interpreters false -e d${{ matrix.django }}-py$(echo ${{ matrix.python }} | sed 's/\.//') |
77 | 77 |
|
78 | 78 | - name: Run test suite d${{ matrix.django }}-py${{ matrix.python }} |
79 | | - run: | |
80 | | - uv export -q --no-hashes -o requirements.txt |
81 | | - uv pip install -r requirements.txt |
82 | | - uv pip install "django==${{ matrix.django }}.*" |
83 | | - uv run pytest tests/ \ |
84 | | - --junit-xml junit-${{ matrix.python }}-${{matrix.django}}.xml \ |
85 | | - --cov --cov-report xml |
| 79 | + run: tox -e d${{ matrix.django }}-py$(echo ${{ matrix.python }} | sed 's/\.//') |
86 | 80 |
|
87 | | - - name: UUpload test results to Codecov |
88 | | - uses: codecov/test-results-action@v1 |
| 81 | + - name: Upload pytest test results |
| 82 | + uses: actions/upload-artifact@v4 |
89 | 83 | with: |
90 | | - env_vars: OS |
91 | | - flags: ${{ matrix.django }} ${{ matrix.python }} |
92 | | - token: ${{ secrets.CODECOV_TOKEN }} |
93 | | - verbose: true |
| 84 | + name: pytest-results-${{ matrix.python }}-${{matrix.django}} |
| 85 | + path: junit-${{ matrix.python }}-${{matrix.django}}.xml |
| 86 | + if: ${{ always() }} |
94 | 87 |
|
95 | 88 | - name: Upload coverage to Codecov |
96 | | - uses: codecov/codecov-action@v5 |
| 89 | + uses: codecov/codecov-action@v4 |
| 90 | + if: matrix.python == 3.12 |
| 91 | + continue-on-error: true |
97 | 92 | with: |
98 | 93 | env_vars: OS,PYTHON |
99 | 94 | fail_ci_if_error: true |
100 | | - files: ./coverage1.xml,./coverage2.xml,!./cache |
101 | 95 | flags: unittests |
102 | | - name: codecov-umbrella |
| 96 | + files: ./coverage.xml |
| 97 | + verbose: false |
103 | 98 | token: ${{ secrets.CODECOV_TOKEN }} |
104 | | - verbose: true |
| 99 | + name: codecov-${{env.GITHUB_REF_NAME}} |
0 commit comments