Skip to content

Commit 208efca

Browse files
Update tests workflow to bring into line with general
1 parent c847e01 commit 208efca

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ jobs:
3838
matrix:
3939
python: [ 3.11, 3.14 ]
4040
os: [ macos-latest, ubuntu-24.04, windows-latest ]
41-
defaults:
42-
run:
43-
shell: bash
41+
4442
steps:
4543
- name: Cancel Previous Runs
4644
uses: styfle/cancel-workflow-action@0.13.0
4745
with:
4846
access_token: ${{ github.token }}
4947

48+
- defaults:
49+
run:
50+
shell: bash
51+
5052
- name: Checkout
5153
uses: actions/checkout@v6.0.2
5254
with:
@@ -89,18 +91,23 @@ jobs:
8991
run: uv sync --locked --group test --no-default-groups
9092

9193
- name: Build module
92-
run: uv run --no-default-groups python setup.py build_ext --inplace
94+
run: uv run --locked --no-default-groups python setup.py build_ext --inplace
9395

9496
- name: Fix windows gsl dlls
9597
if: matrix.os == 'windows-latest'
9698
run: cp /c/vcpkg/installed/x64-windows/bin/gsl*.dll msprime/
9799

98100
- name: Run tests
99-
run: uv run --no-default-groups pytest --cov=msprime --cov-report=xml --cov-branch -n2
101+
run: |
102+
uv run --locked --no-default-groups pytest --cov=msprime \
103+
--cov-report=xml --cov-branch -n2
100104
101105
- name: Upload coverage to Codecov
102-
uses: codecov/codecov-action@v5.4.0
106+
uses: codecov/codecov-action@v5.5.2
103107
with:
104108
token: ${{ secrets.CODECOV_TOKEN }}
105-
flags: python
106-
fail_ci_if_error: true
109+
fail_ci_if_error: false
110+
flags: python-tests
111+
files: coverage.xml
112+
disable_search: true
113+
verbose: true

0 commit comments

Comments
 (0)