-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (59 loc) · 1.59 KB
/
CI.yaml
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
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.cfg.os }}, 🐍=${{ matrix.cfg.python-version }}
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- conda-env: env
python-version: 3.11
os: ubuntu-latest
- conda-env: env
python-version: 3.11
os: macOS-latest
env:
CI_OS: ${{ matrix.cfg.os }}
ENV: ${{ matrix.cfg.conda-env }}
PYVER: ${{ matrix.cfg.python-version }}
steps:
- uses: actions/checkout@v2
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Create Environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/${{ matrix.cfg.conda-env }}.yaml
create-args: python=${{ matrix.python-version }}
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list --show-channel-urls
- name: Install NAGL-MBIS
shell: bash -l {0}
run: |
pip install -e . --no-build-isolation
- name: PyTest
shell: bash -l {0}
run: |
pytest -v --cov=naglmbis --cov-config=pyproject.toml naglmbis/tests/ --cov-report=xml --color=yes
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: false