Skip to content

Commit 7f7fb8e

Browse files
committed
split gha
1 parent 1d0c472 commit 7f7fb8e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
1414
os: [windows-latest, ubuntu-latest, macos-latest]
1515
fail-fast: false
16+
defaults:
17+
run:
18+
shell: bash -l {0}
1619

1720
steps:
1821
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
@@ -25,11 +28,13 @@ jobs:
2528
create-args: >-
2629
python=${{ matrix.python-version }} pip python-build compilers --channel conda-forge
2730
28-
- name: Install wheel and run tests
29-
shell: bash -l {0}
31+
- name: Install wheel
3032
run: >
31-
python -m pip install -e . --no-deps --force-reinstall
32-
&& python -m build --wheel . --outdir dist
33-
&& cp -r test/ dist/
34-
&& cd dist && pip install pytest *.whl
33+
python -m build --wheel . --outdir dist
34+
&& pip install pytest dist/*.whl
35+
36+
- name: Tests
37+
run: >
38+
cp -r test/ tmp
39+
&& cd tmp
3540
&& python -m pytest -rxs test

0 commit comments

Comments
 (0)