Skip to content

Commit

Permalink
Merge develop with faster tests (#199)
Browse files Browse the repository at this point in the history
* Use caching for tests

---------

Co-authored-by: alsmith <asmith151@outlook.com>
  • Loading branch information
CChahrour and alsmith151 committed May 31, 2024
1 parent 60453e4 commit 1b16906
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/test_pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ name: Python package
on: [push]

jobs:
Test:
if: github.event_name == 'pull_request' || github.event_name == 'push'
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"]
test: ["config", "design", "pipeline"]
assay: ["atac", "chip-rx", "chip", "rna-rx", "rna", "snp"]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +24,6 @@ jobs:
key: ${{ runner.os }}-env-${{ hashFiles('**/testing.yml') }}
restore-keys: |
${{ runner.os }}-env-
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -41,7 +36,6 @@ jobs:
shell: pwsh
run: |
pip install .
- name: Cache singularity
if: matrix.test == 'pipeline'
id: cache-singularity
Expand All @@ -51,7 +45,6 @@ jobs:
key: ${{ runner.os }}-singularity-${{ hashFiles('tmp/*') }}
restore-keys: |
${{ runner.os }}-singularity-
- uses: eWaterCycle/setup-apptainer@v2
if: matrix.test == 'pipeline'
with:
Expand All @@ -63,7 +56,6 @@ jobs:
run: |
apptainer remote add --no-login SylabsCloud cloud.sylabs.io
apptainer remote use SylabsCloud
- name: Pull singularity images
if: matrix.test == 'pipeline' && steps.cache-singularity.outputs.cache-hit != 'true'
shell: bash
Expand All @@ -77,10 +69,9 @@ jobs:
elif [[ "${{ matrix.assay }}" == "rna-rx" ]]; then
apptainer pull --force library://asmith151/seqnado/seqnado_report:latest
fi
- name: Test ${{ matrix.test }} ${{ matrix.assay }}
shell: pwsh
env:
TMPDIR: /tmp
run: |
pytest tests/test_pipelines.py::test_${{ matrix.test }}[${{ matrix.assay }}] -vv -s --cores 4
pytest tests/test_pipelines.py::test_${{ matrix.test }}[${{ matrix.assay }}] -vv -s --cores 4

0 comments on commit 1b16906

Please sign in to comment.