-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (57 loc) · 1.8 KB
/
ci_workflow.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
55
56
57
name: run workflow with conda envs
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
release:
types: [published]
schedule:
- cron: '0 3 * * 3,6'
jobs:
run-integration-tests-with-conda-install:
name: ${{ matrix.os }} - Workflow with snakemake conda envs
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: [
"ubuntu-latest",
"macos-13",
# "windows-latest" # rrcovNA cannot be build from source on windows-server
]
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Miniconda
# ! change action https://github.com/mamba-org/setup-micromamba
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
use-mamba: true
channel-priority: disabled
python-version: ${{ matrix.python-version }}
environment-file: snakemake_env.yml
activate-environment: snakemake
auto-activate-base: true
- name: inspect-conda-environment
run: |
conda info
conda list
- name: Dry-run workflow
run: |
cd project
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml -n --use-conda
- name: Run demo workflow (integration test)
continue-on-error: true
run: |
cd project
snakemake -p -c4 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda
- name: Run demo workflow again (in case of installation issues)
run: |
cd project
snakemake -p -c1 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda