-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (37 loc) · 1 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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linux:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ['3.9', '3.10']
defaults:
run:
shell: bash -l {0}
name: Linux py ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: molskill
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- run: |
conda info
pip install pytest pytest-lazy-fixture pytest-cov
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
name: set pythonpath
- run: |
echo "PYTHONPATH=/home/runner/work/molskill/molskill" >> $GITHUB_ENV
name: test
- run: |
pytest --cov=molskill --cov-config=.coveragerc --cov-report=xml tests/