Skip to content

Commit fef2f99

Browse files
committed
Use environment definition file to run test
1 parent 5de0f9e commit fef2f99

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,16 @@ jobs:
3434
steps:
3535
- name: Checkout repository
3636
uses: actions/checkout@v3
37-
- name: Setup mamba
37+
- name: Setup environment
3838
uses: conda-incubator/setup-miniconda@v3
3939
with:
40-
mamba-version: "*"
41-
channels: conda-forge,bioconda,defaults
42-
auto-activate-base: true
43-
activate-environment: ""
44-
- name: Install Snakemake 7.32
45-
run: |
46-
pip install 'snakemake==7.32.4' 'pulp<2.8'
40+
channel-priority: strict
41+
activate-environment: snakemake
42+
auto-activate-base: false
43+
environment-file: .test/environment_7.32.4.yaml
4744
- name: Run test pipeline
48-
run: |
49-
snakemake --snakefile workflow/Snakefile --directory .test --configfile config/config.yaml .test/targets.yaml --use-conda -c1
45+
shell: bash -el {0}
46+
run: snakemake --snakefile workflow/Snakefile --directory .test --configfile config/config.yaml .test/targets.yaml --use-conda -c1 --conda-frontend conda
5047
- name: Pack logs
5148
shell: bash
5249
run: |

0 commit comments

Comments
 (0)