Read the docs build.os #185
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |