Skip to content

Commit 853e3bc

Browse files
authored
Update verify_package.yml
Add conda commands to install dependencies for running unit tests
1 parent 1e381a7 commit 853e3bc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/verify_package.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install -r requirements.txt
22+
CONDA_BASE=$(conda info --base)
23+
source "${CONDA_BASE}/etc/profile.d/conda.sh"
24+
conda env update --prune --file environment.yml
25+
conda activate coast
2326
- name: Lint with flake8
2427
run: |
2528
pip install flake8
@@ -29,10 +32,10 @@ jobs:
2932
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3033
- name: Test with pytest
3134
run: |
32-
pip install dask[complete]
33-
conda install --file environment.yml
35+
CONDA_BASE=$(conda info --base)
36+
source "${CONDA_BASE}/etc/profile.d/conda.sh"
37+
conda env update --prune --file environment.yml
38+
conda activate coast
3439
sudo apt-get update
3540
sudo apt-get install -y libgeos-dev
36-
pip install cartopy==0.21.0
37-
pip install zarr
3841
pytest tests

0 commit comments

Comments
 (0)