-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (44 loc) · 1.68 KB
/
Tests.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
name: Tests
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.9]
iris-version: [3.0.1, 3.1]
include:
# Extra Iris 2.4 test for just Python 3.6
- python-version: 3.6
iris-version: 2.4
exclude:
- python-version: 3.9
iris-version: 3.0.1
- python-version: 3.7
iris-version: 3.0.1
- python-version: 3.6
iris-version: 3.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Iris 2.4
run: |
$CONDA/bin/conda install -c conda-forge python=${{ matrix.python-version }} iris=${{ matrix.iris-version }} cftime=1.0.4 requests mock pytest filelock dask
if: matrix.iris-version == '2.4'
- name: Install Iris 3.0.1
# Pin all relevant versions to match common community installations
run: |
$CONDA/bin/conda install -c conda-forge python=3.6.6 iris=${{ matrix.iris-version }} cf-units=2.1.3 cftime=1.2.1 netCDF4=1.4.2 libnetcdf=4.6.1 numpy=1.19.2 udunits2=2.2.27.6 requests mock pytest filelock dask
if: matrix.iris-version == '3.0.1'
- name: Install Iris 3.1
run: |
$CONDA/bin/conda install -c conda-forge python=${{ matrix.python-version }} iris=${{ matrix.iris-version }} cftime requests mock pytest filelock
if: matrix.iris-version == '3.1'
- name: Activate environment and run tests
run: |
export PYTHONPATH=.
$CONDA/bin/pytest -vv