Skip to content

Merge branch 'master' of https://github.com/alsmith151/SeqNado into d… #1028

Merge branch 'master' of https://github.com/alsmith151/SeqNado into d…

Merge branch 'master' of https://github.com/alsmith151/SeqNado into d… #1028

name: Python package
on: [push]
jobs:
Test:
if: github.event_name == 'pull_request' || github.event_name == 'push'
runs-on: ubuntu-latest
strategy:
matrix:
test: ["config", "design", "pipeline"]
assay: ["atac", "chip-rx", "chip", "rna-rx", "rna", "snp"]
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
id: cache-env
uses: actions/cache@v3
with:
path: |
~/.conda
~/.cache/pip
key: ${{ runner.os }}-env-${{ hashFiles('**/testing.yml') }}
restore-keys: |
${{ runner.os }}-env-
- name: Set up conda using miniforge
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: testing.yml
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Install the package
shell: pwsh
run: |
pip install .
- uses: eWaterCycle/setup-apptainer@v2
if: matrix.test == 'pipeline'
with:
apptainer-version: 1.1.2
- name: Add singularity hub remote
if: matrix.test == 'pipeline'
shell: pwsh
run: |
apptainer remote add --no-login SylabsCloud cloud.sylabs.io
apptainer remote use SylabsCloud
- name: Test ${{ matrix.test }} ${{ matrix.assay }}
shell: pwsh
run: |
pytest tests/test_pipelines.py::test_${{ matrix.test }}[${{ matrix.assay }}] -vv -s --cores 4