QC in pipeline #148
Workflow file for this run
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
# This workflow will install Python dependencies using mamba, run tests and check pre-commit | |
name: Python package | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Swap Space | |
uses: pierotofy/set-swap-space@master | |
with: | |
swap-size-gb: 10 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: 'latest' | |
init-shell: bash | |
generate-run-shell: true | |
environment-name: testenv | |
environment-file: environment.yml | |
- name: Run pytest in micromamba environment | |
run: | | |
micromamba install -n testenv pytest | |
micromamba run -n testenv pytest --import-mode=importlib . | |
- name: pre-commit | |
uses: pre-commit/action@v3.0.0 |