-
Notifications
You must be signed in to change notification settings - Fork 55
53 lines (53 loc) · 1.29 KB
/
ci-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
name: CI (Conda/PyTest)
on:
push:
paths-ignore:
- 'README.md'
pull_request:
types:
- opened
- edited
- synchronize
paths-ignore:
- 'README.md'
jobs:
build:
name: Test (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: true
matrix:
os: ['ubuntu-latest'] #, 'macos-latest']
python-version: ['3.10']
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 'latest'
environment-name: 'bakta'
environment-file: 'environment.yml'
create-args: python=${{ matrix.python-version }}
condarc: |
channels:
- conda-forge
- bioconda
init-shell: bash
cache-environment: true
cache-downloads: true
post-cleanup: 'all'
- name: Install PyTest
run: micromamba install pytest
shell: bash -l {0}
- name: Mamba info
run: |
micromamba info
micromamba list
printenv | sort
shell: bash -l {0}
- name: Run PyTest
if: ${{ matrix.os == 'ubuntu-latest' || matrix.python-version == '3.10'}}
run: pytest
shell: bash -l {0}