-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (41 loc) · 1.3 KB
/
ci.yaml
File metadata and controls
52 lines (41 loc) · 1.3 KB
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
name: build-and-test
on:
push:
pull_request:
jobs:
build-and-test:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.10"
architecture: "x86_64"
auto-activate-base: true
channels: conda-forge,bioconda
channel-priority: strict
auto-update-conda: true
- name: Build conda package
run: |
conda install -n base conda-build -y
conda build conda-recipe --output-folder build_artifacts
- name: Create conda env
run: |
conda create -n bit -y
- name: Add local area as channel
run: |
conda run -n bit conda config --add channels file://${PWD}/build_artifacts
- name: Install built package
run: |
conda run -n bit conda install bit -y
conda run -n bit pip install -e . # the editable pip install is so test coverages make sense
- name: Set env var so subprocesses get coverage
run: echo "COVERAGE_PROCESS_START=.coveragerc" >> $GITHUB_ENV
- name: Run pytest
run: |
conda run -n bit pytest