Skip to content

CI

CI #360

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.cfg.os }}, 🐍=${{ matrix.cfg.python-version }}
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- conda-env: env
python-version: 3.8
os: ubuntu-latest
- conda-env: env
python-version: 3.8
os: macOS-latest
env:
CI_OS: ${{ matrix.cfg.os }}
ENV: ${{ matrix.cfg.conda-env }}
PYVER: ${{ matrix.cfg.python-version }}
steps:
- uses: actions/checkout@v2
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Create Environment
uses: conda-incubator/[email protected]
with:
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.cfg.conda-env }}.yaml
python-version: ${{ matrix.cfg.python-version }}
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
mamba-version: "*"
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list --show-channel-urls
- name: Install NAGL-MBIS
shell: bash -l {0}
run: |
python setup.py develop --no-deps
- name: PyTest
shell: bash -l {0}
run: |
pytest -v --cov=naglmbis --cov-config=setup.cfg naglmbis/tests/ --cov-report=xml
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: false