-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (50 loc) · 1.24 KB
/
pytest-unix-os.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: pytest on Unix OS
on:
pull_request:
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**
push:
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
source_dir: peak_finder
jobs:
pytest:
name: pytest (Unix)
strategy:
fail-fast: false
matrix:
python_ver: ['3.10']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
env:
PYTHONUTF8: 1
CONDA_LOCK_ENV_FILE: environments/conda-py-${{ matrix.python_ver }}-${{ startsWith(matrix.os, 'macos') && 'osx' || 'linux' }}-64-dev.lock.yml
PIP_EXTRA_INDEX_URL: https://test.pypi.org/simple/
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup conda env
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ${{ env.CONDA_LOCK_ENV_FILE }}
environment-name: test_env
cache-downloads: true
- name: pytest
run: |
pytest --cov=${source_dir} --cov-report=xml --cov-branch