Iss1106/read icos nc #1079
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: Create conda environment and run tests | |
on: | |
push: | |
branches: [master, devel] | |
tags: | |
- "*" | |
paths-ignore: | |
- 'CHANGELOG.md' | |
pull_request: | |
branches: [master, devel] | |
paths-ignore: | |
- 'CHANGELOG.md' | |
jobs: | |
test: | |
name: Run tests on (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
fail-fast: false | |
max-parallel: 3 | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.10"] | |
# python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mamba-org/setup-micromamba@8752438cc2755ab7d0de2a8d70b694f5586baae8 | |
with: | |
environment-file: environment-dev.yaml | |
cache-environment: true | |
post-cleanup: "all" | |
init-shell: bash | |
- name: Install OpenGHG | |
run: conda develop . | |
shell: micromamba-shell {0} | |
- name: Run the tests | |
run: pytest -v tests/ | |
shell: micromamba-shell {0} |