redo ci #31
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: ci_pytest | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
# See https://github.com/marketplace/actions/setup-micromamba | |
- name: setup-micromamba | |
uses: mamba-org/[email protected] | |
with: | |
micromamba-version: '1.5.8-0' # temporary fix as setup-mircomamba hangs with later mamba version | |
environment-file: environment.yml | |
environment-name: patchwork # activate the environment | |
cache-environment: true | |
cache-downloads: true | |
generate-run-shell: true | |
- name: Run tests with pytest | |
shell: micromamba-shell {0} | |
run: python -m pytest ./test -s --log-cli-level DEBUG |