-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.31 KB
/
pytest.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
38
39
40
41
42
43
name: Pytest for Ubuntu / macOS latest
on:
push:
schedule:
- cron: "0 2 * * 1" # The task runs at 2 a.m. every Monday.
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 10
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
activate-environment: test-env
channels: bioconda, conda-forge, defaults
- name: Setup conda environment
run: |
conda create -y -n env-dajin2 python=${{ matrix.python-version }} pip pytest
- name: Execute tests
env:
PYTHONPATH: src
run: |
conda activate env-dajin2
# Use pip because conda does not support pyproject.toml.
pip install -e .
pytest tests/ -p no:warnings -vv