-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (48 loc) · 1.35 KB
/
CI.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: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
cfg:
# - conda-env: test_env
# python-version: 3.6
- conda-env: test_env
python-version: 3.8
# - conda-env: test_env
# python-version: 3.8
env:
PYVER: ${{ matrix.cfg.python-version }}
CONDA_ENV: ${{ matrix.cfg.conda-env }}
steps:
- uses: actions/checkout@v1
- name: Setup Information
shell: bash
run: |
uname -a
df -h
ulimit -a
conda --version
- name: Create Environment
shell: bash
run: |
eval "$(conda shell.bash hook)" && conda activate
python devtools/scripts/create_conda_env.py -n=test -p=$PYVER devtools/conda-envs/$CONDA_ENV.yaml
- name: Install
shell: bash
run: |
eval "$(conda shell.bash hook)" && conda activate test
python -m pip install . --no-deps
- name: Environment Information
shell: bash
run: |
eval "$(conda shell.bash hook)" && conda activate test
conda list --show-channel-urls
- name: PyTest
shell: bash
run: |
eval "$(conda shell.bash hook)" && conda activate test
pytest -rws -v --cov=CADMium --color=yes --cov-report=xml CADMium/
- name: CodeCov
uses: codecov/codecov-action@v1