Skip to content

Commit b897ded

Browse files
Use conda-incubator/setup-miniconda
1 parent 9645735 commit b897ded

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
matrix:
4040
compiler: [gfortran-10, gfortran-11, gfortran-12]
4141
python-version: [3.11]
42+
defaults:
43+
run:
44+
shell: bash -el {0}
4245
env:
4346
F90: ${{ matrix.compiler }}
4447
FC: ${{ matrix.compiler }}
@@ -58,21 +61,15 @@ jobs:
5861
###############################################################################
5962
# Checks-out repository under $GITHUB_WORKSPACE
6063
- uses: actions/checkout@v4
61-
# Set up Python and install dependencies
62-
- name: Set up Python
63-
uses: actions/setup-python@v5
64-
with:
65-
python-version: ${{ matrix.python-version }}
66-
- name: Setup conda
67-
# uses: s-weigand/setup-conda@v1.2.1
68-
# with:
69-
# python-version: 3.11
64+
# Set up conda environment
65+
- name: Setup conda environment
7066
uses: conda-incubator/setup-miniconda@v3.0.3
7167
with:
7268
auto-update-conda: true
69+
activate-environment: ci-env
70+
environment-file: build/environment.yml
7371
python-version: ${{ matrix.python-version }}
74-
- name: Install python packages
75-
run: conda install --yes cartopy matplotlib netcdf4
72+
auto-activate-base: false
7673
# NetCDF C and FORTRAN libraries
7774
- name: Install NetCDF library
7875
run: |

0 commit comments

Comments
 (0)