Skip to content

Commit

Permalink
Update quicktest env, run cov on 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Aug 7, 2024
1 parent 05d10d7 commit 522d7b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/quick_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,22 @@ jobs:
steps:
- name: clone repository
uses: actions/checkout@v4
- name: install Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: install linux dependencies
run: |
sudo apt update
sudo apt install libhdf5-dev
sudo apt install libnetcdf-dev
if: runner.os == 'Linux'
- name: install macos dependencies
run: |
brew install hdf5
brew install netcdf
if: runner.os == 'macOS'
- name: load cached Python installation
id: cache
uses: actions/cache@v4
- name: conda virtual environment
uses: mamba-org/setup-micromamba@v1
with:
path: ${{ env.pythonLocation }}
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
init-shell: bash
environment-name: ci-env
create-args: >-
python=3.9
libnetcdf
hdf5
udunits2
- name: install dependencies
run: pip install ".[testing]"
shell: micromamba-shell {0}
- name: rebuild netcdf from source
run: python -m pip install --upgrade --force-reinstall --no-deps --no-cache-dir netcdf4 --no-binary netcdf4
if: runner.os == 'Linux'
run: pip install --upgrade --force-reinstall --no-deps --no-cache-dir netcdf4 --no-binary netcdf4
shell: micromamba-shell {0}
- name: run tests
run: pytest --numprocesses auto
shell: micromamba-shell {0}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
init-shell: bash
environment-name: ci-env
create-args: >-
python=3.10
python=3.9
libnetcdf
hdf5
udunits2
Expand Down

0 comments on commit 522d7b9

Please sign in to comment.