Skip to content

Continuous Integration #397

Continuous Integration

Continuous Integration #397

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '59 23 * * *'
jobs:
unittests:
name: CI (${{ matrix.os }}-${{ matrix.environment-file }})
runs-on: ${{ matrix.os }}
continue-on-error: false
timeout-minutes: 45
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
environment-file: [ .ci/39.yml, .ci/310.yml, .ci/311.yml]
fail-fast: false
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
- name: reinstall tobler - bash
shell: bash -l {0}
run: pip install -e . --no-deps --force-reinstall
if: matrix.os != 'windows-latest'
- name: reinstall tobler - powershell
shell: powershell
run: pip install -e . --no-deps --force-reinstall
if: matrix.os == 'windows-latest'
- name: run pytest - bash
shell: bash -l {0}
run: pytest -v tobler --cov=tobler --cov-report=xml
if: matrix.os != 'windows-latest'
- name: run pytest - powershell
shell: powershell
run: pytest -v tobler --cov=tobler --cov-report=xml
if: matrix.os == 'windows-latest'
- name: codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: tobler-codecov