Skip to content

Commit

Permalink
or this
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbrownshoes committed Jan 28, 2025
1 parent c7c2454 commit 56cb693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/downloadandProcess.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,34 @@ jobs:
with:
ref: gh-pages

- name: Install system libraries
- name: Install system libraries and create symlink
run: |
sudo apt-get update
sudo apt-get install -y \
libgdal-dev \
libgeos-dev \
libproj-dev \
libtiff6 \
python3-gdal
python3-gdal \
python3-pyproj \
proj-bin \
proj-data
# Create symlink from libtiff6 to libtiff5
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
cache-environment: true
create-args: >-
python=3.9
cartopy
pyproj
--channel conda-forge
- name: Verify environment
shell: bash -l {0}
run: |
micromamba list
python -c "import cartopy; print('Cartopy import successful')"
- name: Execute Python script
shell: bash -l {0}
Expand All @@ -48,7 +57,6 @@ jobs:
run: npm run build --if-present

- name: Commit files
id: commit
run: |
git config --local user.email "action[bot]@github.com"
git config --local user.name "github-actions[bot]"
Expand Down
7 changes: 3 additions & 4 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ dependencies:
- cmocean>=2.0,<3.0
- xarray>=0.21.1,<0.22.0
- glob2>=0.7,<0.8
- netcdf4==1.5.8
- cartopy==0.21.1
- pyproj
- proj
- netcdf4==1.5.8
- pyproj=9.3.1
- proj=9.3.1
- matplotlib
- numpy
- gdal
- geos
- libtiff
- pip

0 comments on commit 56cb693

Please sign in to comment.