This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
[pre-commit.ci] pre-commit autoupdate #129
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: Continuous Integration Workflow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
run-tests: | |
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
python-version: ['3.6', '3.7'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: goanpeca/setup-miniconda@v1 | |
with: | |
activate-environment: robupy | |
auto-update-conda: true | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
- name: Run pytest. | |
shell: bash -l {0} | |
run: pytest --cov-report=xml --cov=./ | |
- name: Run pre-commits. | |
shell: bash -l {0} | |
run: | | |
pre-commit install -f --install-hooks | |
pre-commit run --all-files |