Skip to content

Commit

Permalink
split gha
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jun 26, 2024
1 parent 1d0c472 commit e161c4b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
Expand All @@ -25,11 +28,13 @@ jobs:
create-args: >-
python=${{ matrix.python-version }} pip python-build compilers --channel conda-forge
- name: Install wheel and run tests
shell: bash -l {0}
- name: Install wheel
run: >
python -m pip install -e . --no-deps --force-reinstall
&& python -m build --wheel . --outdir dist
&& cp -r test/ dist/
&& cd dist && pip install pytest *.whl
python -m build --wheel . --outdir dist
&& pip install pytest dist/*.whl
- name: Tests
run: >
cp --recursive test/ /tmp
&& pushd /tmp
&& python -m pytest -rxs test

0 comments on commit e161c4b

Please sign in to comment.