-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.37 KB
/
workflow.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
name: Python Application
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.8
# uses: actions/setup-python@v2
# with:
# python-version: 3.8
#
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
activate-environment: testenv
- name: Install dependencies
shell: bash -l {0}
run: |
conda activate testenv
conda env update --name testenv --file environment.yml
# install YAFF manually as conda package is outdated
pip install git+https://github.com/molmod/yaff
#git clone https://github.com/molmod/yaff
#cd yaff
#python setup.py install
#cd ..
#rm -rf yaff
- name: Install openyaff
shell: bash -l {0}
run: |
conda activate testenv
python setup.py install
- name: Execute tests
shell: bash -l {0}
run: |
conda activate testenv
pip install pytest coverage
coverage run -m py.test
coverage xml
- uses: codecov/codecov-action@v1
with:
token: fea4705c-9b79-49f7-92d6-2d12d25cac15
verbose: True