-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (40 loc) · 1.05 KB
/
python-app.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
name: Build Status
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- name: Checking code
uses: actions/checkout@v3
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: Install dependencies
shell: bash -l {0}
run : |
conda install -c bioconda -c conda-forge \
ngless pyrodigal megahit paladin pandas requests atomium tzlocal \
"scikit-learn<1.3.0" "joblib<1.3.0"
conda install pytest
pip install .
- name: Test with pytest
shell: bash -l {0}
run: |
python -m pytest macrel/tests
- name: Test Macrel CLI
shell: bash -l {0}
run: |
./run-tests.sh