Skip to content

[pre-commit.ci] pre-commit autoupdate #360

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #360

Workflow file for this run

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