-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (52 loc) · 1.49 KB
/
test_pipelines.yml
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
name: Python package
on: [push]
jobs:
Build_and_Test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v2
- uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.1.2
- name: Add singularity hub remote
run: |
apptainer remote add --no-login SylabsCloud cloud.sylabs.io
apptainer remote use SylabsCloud
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up conda using miniforge
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment_minimal.yml
miniforge-version: latest
miniforge-variant: Mambaforge
python-version: ${{ matrix.python-version }}
use-mamba: true
- name: Install package dependencies
run: |
mamba env update -n test -f environment_minimal.yml
shell: bash -l {0}
- name: Install testing dependencies
run: |
mamba env update -n test -f testing.yml
shell: bash -l {0}
- name: Install the package
shell: bash -l {0}
run: |
pip install .
- name: Conda list
shell: pwsh
run: mamba list
- name: Test design works
shell: pwsh
run: |
seqnado-design chip tests/data/fastq/CTCF*.fastq.gz
- name: Test with pytest
shell: pwsh
run: |
pytest -s --cores 4