Skip to content

Fix export

Fix export #37

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
jobs:
Unit_testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f .tests/unit/requirements.txt ]; then pip install -r .tests/unit/requirements.txt; fi
- name: Unit testing
run: |
pytest .tests/unit
- name: Cancelling parallel jobs
if: failure()
uses: andymckay/[email protected]
Integration_testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup mamba
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
channels: conda-forge,bioconda
activate-environment: snkmk
- name: Integration testing
run: |
mamba install 'snakemake>=6.3.0' -n snkmk
mamba env export
# Just a dry run because the env is over 10 GB
/usr/share/miniconda3/envs/snkmk/bin/snakemake -s workflow/Snakefile -n --cores 1 --use-conda --conda-prefix envs --show-failed-logs --configfile .tests/integration/config/config.yaml --keep-incomplete
- name: Archive logs on fail
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: fail-logs
path: |
.tests/integration/logs/
.tests/integration/allele_calling/logs
.tests/integration/join_clusters_main/logs
.tests/integration/join_clusters_sub/logs
if-no-files-found: warn
retention-days: 3