-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 871 Bytes
/
ci_pytest.yaml
File metadata and controls
32 lines (27 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/setup-micromamba@v1.9.0
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