Skip to content

Commit 19657e4

Browse files
author
Trygve Aspenes
committed
updated to conda-forge
1 parent edee642 commit 19657e4

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed

.github/workflows/pytest.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,19 @@ jobs:
2020
architecture: x64
2121
- name: Checkout Source
2222
uses: actions/checkout@v2
23-
- name: Install Dependencies
24-
run: |
25-
pip install --upgrade pip
26-
pip install -r test-requirements.txt
27-
pip install pytest-timeout
28-
pip install pytest-cov
23+
- name: Setup Conda Environment
24+
uses: conda-incubator/setup-miniconda@v3
25+
with:
26+
miniforge-version: latest
27+
python-version: ${{ matrix.python-version }}
28+
activate-environment: test-environment
29+
channels: conda-forge
30+
conda-remove-defaults: true
31+
channel-priority: strict
32+
- name: Update environment
33+
run: mamba env update -n test-environment -f continuous_integration/environment.yaml
34+
if: steps.cache.outputs.cache-hit != 'true'
35+
2936
- name: Run Tests
3037
run: python -m pytest -v --cov=./ --cov-report=xml --timeout=60
3138
- name: Upload to Codecov
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: test-environment
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- jinja2
6+
- pyyaml
7+
- pytest-mock
8+
- uvicorn
9+
- requests
10+
- boto3
11+
- rasterio
12+
- satpy
13+
- mapserver
14+
- cmocean
15+
- pip:
16+
- pytest-lazy-fixtures
17+
- pytest-timeout
18+
- pytest-cov

test-requirements.txt

-11
This file was deleted.

0 commit comments

Comments
 (0)