Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GHA pipeline, install scipy using conda #604

Merged
merged 5 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,37 @@ jobs:
fail-fast: false
matrix:
platform:
- ubuntu-20.04
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- pypy-2.7
- pypy-3.7
- pypy-3.8
- pypy-3.9
dependencies:
extras:
- none
- scipy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
- name: Install Python build tools
if: matrix.python-version != 'pypy-3.7' || matrix.platform != 'windows-latest'
run: python -m pip install tox-gh-actions wheel
- name: Install optional dependencies
run: python -m pip install ${{ matrix.dependencies }}
if: ${{ matrix.dependencies != 'none' }}
- name: Workaround for PyPy 3.7 on Windows (tox-conda)
if: matrix.python-version == 'pypy-3.7' && matrix.platform == 'windows-latest'
run: python -m pip install tox-conda tox-gh-actions wheel
- name: Install optional dependencies (extras) on Linux/macOS
if: matrix.extras != 'none' && matrix.platform != 'windows-latest'
run: conda install -c anaconda ${{ matrix.extras }}
- name: Install optional dependencies (extras) on Windows
if: matrix.extras != 'none' && matrix.platform == 'windows-latest'
run: . ${env:CONDA}\scripts\conda.exe install -c anaconda ${{ matrix.extras }}
- name: Run tests
run: tox
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ commands =
coverage run -m pytest {posargs}
coverage xml
coverage report
extras = scipy

[testenv:clean]
description = Clean up bytecode and build artifacts
Expand Down