Skip to content

Commit a64521f

Browse files
committed
fix(ci): use system python to run tests
1 parent 0cfbde6 commit a64521f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727

2828
- name: Set up Python ${{ matrix.python-version }}
2929
uses: actions/setup-python@v5
30+
id: setup-python
3031
with:
3132
python-version: ${{ matrix.python-version }}
3233
allow-prereleases: true
@@ -35,6 +36,8 @@ jobs:
3536
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
3637

3738
- run: hatch run full
39+
env:
40+
HATCH_PYTHON: ${{ steps.setup-python.outputs.python-path }}
3841

3942
- uses: actions/upload-artifact@v4
4043
with:
@@ -51,16 +54,17 @@ jobs:
5154
runs-on: ubuntu-latest
5255
steps:
5356
- uses: actions/checkout@v4
54-
- uses: actions/setup-python@v5
55-
with:
56-
python-version: "3.x"
57+
5758
- name: Install hatch
5859
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
60+
5961
- uses: actions/download-artifact@v4
6062
with:
6163
pattern: coverage-*
6264
merge-multiple: true
65+
6366
- run: hatch run coverage combine
67+
6468
- run: hatch run coverage report --fail-under 100 --show-missing
6569

6670
lint:
@@ -103,9 +107,6 @@ jobs:
103107
- uses: actions/checkout@v4
104108
with:
105109
fetch-depth: 0
106-
- uses: actions/setup-python@v5
107-
with:
108-
python-version: 3.x
109110

110111
- name: Install hatch
111112
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc

0 commit comments

Comments
 (0)