[pre-commit.ci] pre-commit autoupdate #364
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: CI | |
on: | |
push: | |
branches: "main" | |
pull_request: | |
branches: "*" | |
jobs: | |
build: | |
name: Build (${{ matrix.python-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- uses: actions/[email protected] | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: ci/environment.yml | |
activate-environment: cf_tools_test | |
auto-update-conda: false | |
python-version: ${{ matrix.python-version }} | |
miniforge-variant: Mambaforge | |
use-mamba: true | |
- name: Set up conda environment | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e . | |
conda list | |
- name: Run Tests | |
shell: bash -l {0} | |
run: pytest --cov-report term --cov-report xml | |
- name: Upload code coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: false | |
upstream-dev: | |
name: upstream-dev | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: ci/upsteam_dev_env.yml | |
activate-environment: cf_tools_test_dev | |
auto-update-conda: false | |
miniforge-variant: Mambaforge | |
use-mamba: true | |
- name: Set up conda environment | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e . | |
conda list | |
- name: Run Tests | |
shell: bash -l {0} | |
run: pytest --no-cov | |