-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.58 KB
/
test_importers.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
58
59
60
61
62
name: Test pysteps-nwp-importers
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
unit_tests:
name: Unit Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
python-version: [ "3.7", "3.9" ]
max-parallel: 6
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install mamba and create environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ci/ci_test_env.yml
environment-name: test_environment
extra-specs: python=${{ matrix.python-version }}
- name: Pre-install pysteps (MacOS only)
if: matrix.os == 'macos-latest'
working-directory: ${{github.workspace}}
env:
CC: gcc-9
CXX: g++-9
CXX1X: g++-9
HOMEBREW_NO_INSTALL_CLEANUP: 1
run: |
brew update-reset
brew update
gcc-9 --version || brew install gcc@9
pip install "pysteps>=1.4,<2.0"
- name: Install pysteps-nwp-importers
working-directory: ${{github.workspace}}
run: pip install .
- name: Check imports
run: |
python --version
python -c "import pysteps_nwp_importers"
- name: Run tests
run: pytest --pyargs pysteps_nwp_importers