Skip to content

Commit

Permalink
Add a test run installing niftyreg from conda
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed May 11, 2023
1 parent 0dc999a commit 9fe6a5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
include:
- os: ubuntu-latest
python-version: "3.11"
# Run macos tests with niftyreg installed from conda
- os: macos-latest
python-version: "3.10"
tox-args: "-e py310-conda"
- os: windows-latest
python-version: "3.9"
- os: ubuntu-latest
Expand All @@ -34,6 +36,7 @@ jobs:
- uses: neuroinformatics-unit/actions/test@v1
with:
python-version: ${{ matrix.python-version }}
tox-args: ${{ matrix.tox-args }}

deploy:
needs: test
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[tox]
envlist = py{38,39,310,311}
envlist = py{38,39,310,311}{,-conda}
requires = tox-conda
isolated_build = true

[gh-actions]
python =
Expand All @@ -13,3 +15,9 @@ extras =
dev
commands =
pytest -v --color=yes --cov=brainreg --cov-report=xml

[testenv:py{38,39,310,311}-conda]
conda_deps=
niftyreg
conda_channels=
conda-forge

0 comments on commit 9fe6a5e

Please sign in to comment.