Skip to content

Commit

Permalink
Merge pull request #37 from ec-jrc/development
Browse files Browse the repository at this point in the history
Updated github action and requirements file
  • Loading branch information
doc78 authored May 24, 2023
2 parents 88f20f3 + 516e0b4 commit f9fd9a1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/ci_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,34 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.7'
- name: Add conda to system path
auto-update-conda: true
python-version: 3.7
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Install python and gcc
shell: bash -el {0}
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
conda install -c conda-forge python=3.7
conda install -c conda-forge gcc=12.1.0
- name: Install gdal and pcraster
shell: bash -el {0}
run: |
conda install -c conda-forge gdal pcraster
- name: Install dependencies
shell: bash -el {0}
run: |
pip install -r requirements.txt
- name: Check installation
shell: bash -el {0}
run: |
conda env update --file environment.yml --name base
gdal-config --version
python -c "from osgeo import gdal; print(gdal.__version__)"
conda list
- name: Test with pytest
shell: bash -el {0}
run: |
conda install pytest
pip install pytest pytest-cov
pytest
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ attrs>=19.3.0
cftime>=1.0.4.2
coverage>=5.0.3
dask>=2021.10.0
importlib-metadata>=1.5.0
importlib-metadata<5.0.0
more-itertools>=8.2.0
netCDF4>=1.5.3
nine>=1.1.0
Expand Down

0 comments on commit f9fd9a1

Please sign in to comment.