-
Notifications
You must be signed in to change notification settings - Fork 30
54 lines (48 loc) · 1.37 KB
/
python-package-conda.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
name: freyja CI
on:
push:
branches: [ main ]
pull_request:
jobs:
testsuite:
runs-on: ubuntu-latest
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup for conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: bioconda,conda-forge
channel-priority: true
python-version: 3.7
activate-environment: test
- name: Install
shell: bash -l {0}
run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda config --add channels bioconda
conda config --add channels conda-forge
conda install --yes --file ci/conda_requirements.txt
pip install -e . --no-deps
- name: Test
shell: bash -l {0}
run: |
conda activate test
make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: flake8
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install dependencies
run: python -m pip install --upgrade pip
- name: lint
run: |
pip install -q flake8
make lint