-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (48 loc) · 1.54 KB
/
testMaps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: test_Maps
on:
pull_request:
# to trigger workflow manually from actions-tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# set operating systems to test
os: [ubuntu-latest]
# set python versions to test
python-version: ['3.9']
name: test_Maps ${{ matrix.os }} ${{ matrix.python-version }}
steps:
# checkout repository
- uses: actions/checkout@v3
# install miniconda environment
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: tests/test_env.yml
# use mamba to speed up installation
#mamba-version: "*"
#channels: conda-forge
#channel-priority: true
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: testMaps
show-channel-urls: true
use-only-tar-bz2: true
python-version: ${{ matrix.python-version }}
auto-activate-base: false
auto-update-conda: true
# run pytest
- name: test Maps
# do this to ensure proper activation of conda environment
shell: bash -l {0}
run: |
python -m pytest --cov=eomaps --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
env_vars: ${{ matrix.os }}, ${{ matrix.python-version }}
name: maps_coverage
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true