@@ -63,28 +63,15 @@ jobs:
6363 uses : fizyk/actions-reuse/.github/actions/uv-run@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
6464 with :
6565 command : pip install -r oldest/requirements.txt
66- - name : Run tests without xdist
67- id : run_serial_tests
68- uses : fizyk/actions-reuse/.github/actions/uv-run@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
69- with :
70- command : python -m coverage run --data-file=.coverage.serial -m pytest -c pyproject.oldest.toml -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --basetemp="${{ runner.temp }}/pytest-basetemp"
71- env : ' {"COVERAGE_PROCESS_START": ".coveragerc", "COVERAGE_FILE": ".coverage.serial"}'
72- - name : Combine and export serial coverage
73- if : ${{ always() && (steps.run_serial_tests.conclusion == 'success' || steps.run_serial_tests.conclusion == 'failure') }}
74- uses : fizyk/actions-reuse/.github/actions/coverage-combine-export-uv@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
66+ - uses : fizyk/actions-reuse/.github/actions/uv-pytest-coverage@7eefbd6ffc6c6787ad3be6ce93dcf475e3ae99b5 # v5.6.0
7567 with :
68+ pytest-opts : -c pyproject.oldest.toml -svv -p no:xdist --postgresql-exec="${{ env.POSTGRESQL_EXEC }}" -k "not docker" --basetemp="${{ runner.temp }}/pytest-basetemp"
7669 data-file : .coverage.serial
7770 output-file : coverage-serial.xml
78- - name : Run xdist test
79- id : run_xdist_tests
80- uses : fizyk/actions-reuse/.github/actions/uv-run@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
81- with :
82- command : python -m coverage run --data-file=.coverage.xdist -m pytest -n auto -c pyproject.oldest.toml --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --basetemp="${{ runner.temp }}/pytest-basetemp"
83- env : ' {"COVERAGE_PROCESS_START": ".coveragerc", "COVERAGE_FILE": ".coverage.xdist"}'
84- - name : Combine and export xdist coverage
85- if : ${{ always() && (steps.run_xdist_tests.conclusion == 'success' || steps.run_xdist_tests.conclusion == 'failure') }}
86- uses : fizyk/actions-reuse/.github/actions/coverage-combine-export-uv@42b61e053c1d70a61deb42b323c1a2229e2e7fe0 # v5.5.0
71+ - uses : fizyk/actions-reuse/.github/actions/uv-pytest-coverage@7eefbd6ffc6c6787ad3be6ce93dcf475e3ae99b5 # v5.6.0
8772 with :
73+ pytest-opts : -n auto -c pyproject.oldest.toml --dist loadgroup --max-worker-restart 0 --postgresql-exec="${{ env.POSTGRESQL_EXEC }}" -k "not docker" --basetemp="${{ runner.temp }}/pytest-basetemp"
74+ coverage-config : .coveragerc
8875 data-file : .coverage.xdist
8976 output-file : coverage-xdist.xml
9077 - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
0 commit comments