Skip to content

Merge pull request #350 from Unidata/dependabot/github_actions/github… #166

Merge pull request #350 from Unidata/dependabot/github_actions/github…

Merge pull request #350 from Unidata/dependabot/github_actions/github… #166

Workflow file for this run

name: TESTS-CONDA-ENV
on:
pull_request:
push:
branches: [master]
jobs:
run:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
platform: [x64, x32]
experimental: [false]
exclude:
- os: macos-latest
platform: x32
include:
- python-version: "3.12"
os: "ubuntu-latest"
experimental: true
steps:
- uses: actions/checkout@v4
- name: Setup micromamba Env
uses: mamba-org/setup-micromamba@v2
with:
environment-name: TEST
create-args: >-
python=${{ matrix.python-version }}
numpy>1.13.3
cython>=0.29.20
pytest
pytest-cov
- name: Install unstable dependencies
if: matrix.experimental == true
shell: bash -l {0}
run: |
python -m pip install \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/ \
--trusted-host pypi.anaconda.org \
--no-deps --pre --upgrade \
numpy;
python -m pip install -v -e . --no-deps --no-build-isolation --force-reinstall
- name: Install cftime
if: matrix.experimental != true
shell: bash -l {0}
run: |
python -m pip install -v -e . --no-deps --force-reinstall
- name: Run Tests
shell: bash -l {0}
run: |
pytest -vv test