Skip to content

Commit

Permalink
ENH: Simplify CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Apr 22, 2024
1 parent 5377428 commit f06a2e7
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
python-version: "3.11"
- name: "Build pure Python wheels"
run: |
python -m pip wheel -w dist -e src/
python -m pip install hatch
cd src
hatch build
- uses: actions/upload-artifact@v4
with:
name: wheel
path: ./dist/itk_dreg-*.whl
path: ./src/dist/itk_dreg-*.whl

pytest:
name: "Test with PyTest"
Expand All @@ -36,27 +38,20 @@ jobs:
- name: "Install Dependencies"
shell: bash
working-directory: src
run: |
python -m pip install hatch
cd src
hatch build
python -m pip install -e '.[test]'
- name: Download Python Wheel Artifact
uses: actions/download-artifact@v4
with:
name: wheel

- name: "Install itk-dreg from Wheel Artifact"
- name: "Install itk-dreg from source"
working-directory: src
run: |
wheel_name_full=`(find . -name "itk_dreg-*.whl")`
python -m pip uninstall -y itk_dreg
python -m pip install ${wheel_name_full}
python -m pip install -e '.[test]'
- name: "Run Tests"
shell: bash
working-directory: src
run: |
cd src
pip install -e '.[test]'
pytest -vvv -s -k "not localcluster and not serialize_pairwise_result"
publish:
Expand Down

0 comments on commit f06a2e7

Please sign in to comment.