-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 1006 Bytes
/
cicd_light.yml
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
33
34
35
36
37
name: cicd_light
on:
# Run tests for non-draft pull request on dev
pull_request:
branches:
- dev
jobs:
test_light:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-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: pdaltools # 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 -m "not geopf"