Skip to content

Commit 56cb693

Browse files
committed
or this
1 parent c7c2454 commit 56cb693

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/downloadandProcess.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,34 @@ jobs:
1414
with:
1515
ref: gh-pages
1616

17-
- name: Install system libraries
17+
- name: Install system libraries and create symlink
1818
run: |
1919
sudo apt-get update
2020
sudo apt-get install -y \
2121
libgdal-dev \
2222
libgeos-dev \
2323
libproj-dev \
2424
libtiff6 \
25-
python3-gdal
25+
python3-gdal \
26+
python3-pyproj \
27+
proj-bin \
28+
proj-data
29+
# Create symlink from libtiff6 to libtiff5
30+
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5
2631
2732
- uses: mamba-org/setup-micromamba@v1
2833
with:
2934
environment-file: environment.yaml
3035
cache-environment: true
3136
create-args: >-
3237
python=3.9
33-
cartopy
34-
pyproj
3538
--channel conda-forge
39+
40+
- name: Verify environment
41+
shell: bash -l {0}
42+
run: |
43+
micromamba list
44+
python -c "import cartopy; print('Cartopy import successful')"
3645
3746
- name: Execute Python script
3847
shell: bash -l {0}
@@ -48,7 +57,6 @@ jobs:
4857
run: npm run build --if-present
4958

5059
- name: Commit files
51-
id: commit
5260
run: |
5361
git config --local user.email "action[bot]@github.com"
5462
git config --local user.name "github-actions[bot]"

environment.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ dependencies:
1616
- cmocean>=2.0,<3.0
1717
- xarray>=0.21.1,<0.22.0
1818
- glob2>=0.7,<0.8
19-
- netcdf4==1.5.8
2019
- cartopy==0.21.1
21-
- pyproj
22-
- proj
20+
- netcdf4==1.5.8
21+
- pyproj=9.3.1
22+
- proj=9.3.1
2323
- matplotlib
2424
- numpy
2525
- gdal
2626
- geos
27-
- libtiff
2827
- pip

0 commit comments

Comments
 (0)