-
-
Notifications
You must be signed in to change notification settings - Fork 11
60 lines (49 loc) · 1.48 KB
/
smoke-test.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
57
58
59
60
# Create a smoketest that just installs the biobear python package and reads an example file
name: Smoke Test
on:
workflow_dispatch:
schedule:
- cron: '0 0 */5 * *'
jobs:
test-package-conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniconda-version: 'latest'
activate-environment: biobear
- name: Read example fasta file
shell: bash -l {0}
run: |
conda info
conda install -c conda-forge -n biobear biobear polars
conda run -n biobear python ./.github/workflows/smoketest.py
test-package-pip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install biobear
run: |
python -m pip install --upgrade pip
pip install biobear polars
- name: Read example fasta file
shell: bash
run: |
python ./.github/workflows/smoketest.py