modified examples #482
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test with Conda | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test-conda: | |
name: Test conda env | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
# requests crashes on OSX without this | |
no_proxy: "*" | |
# issue with SciPy on Windows, see https://github.com/scipy/scipy/issues/14002 | |
CONDA_DLL_SEARCH_MODIFICATION_ENABLE: "1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache conda | |
uses: actions/cache@v4 | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ runner.os }}-conda-${{hashFiles('conda-environment.yml') }} | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
activate-environment: roger | |
environment-file: conda-environment.yml | |
use-only-tar-bz2: true | |
- name: Install test dependencies | |
run: | | |
pip install pytest | |
python -m ensurepip --upgrade | |
python -m pip install --upgrade setuptools | |
- name: List | |
run: | | |
conda info | |
conda list | |
- name: Run tests | |
run: pytest . |