Skip to content

Commit

Permalink
Try completely new syntax with the micromamba migration
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaholtNOAA authored Nov 14, 2024
1 parent b5fb824 commit 0184e4b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/graphics_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@ jobs:
uses: actions/checkout@v2
with:
lfs: true
- name: Install Micromamba with no environment
- name: Install Micromamba with pygraf environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
channel-priority: flexible
environment-file: environment.yml
cache-downloads: true
cache-environment: true
- name: Install pygraf environment
run: micromamba create -n pygraf -y -f /home/runner/work/pygraf/pygraf/environment.yml
- name: Lint code
run: |
micromamba activate pygraf
find . -type f -name "*.py" | xargs pylint
run: find . -type f -name "*.py" | xargs pylint
shell: bash -el {0}
- name: Test code
run: |
micromamba activate pygraf
python -m pytest --nat-file tests/data/wrfnat_hrconus_07.grib2 --prs-file tests/data/wrfprs_hrconus_07.grib2 --ignore=tests/test_hrrr_maps.py
run: python -m pytest --nat-file tests/data/wrfnat_hrconus_07.grib2 --prs-file tests/data/wrfprs_hrconus_07.grib2 --ignore=tests/test_hrrr_maps.py
shell: bash -el {0}

0 comments on commit 0184e4b

Please sign in to comment.