-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (49 loc) · 1.31 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
name: CI
on:
push:
branches:
- "main"
# paths:
# - "pyscreener/**"
# - "tests/**"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: [3.8]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python-version }}
environment-file: ./.github/test-env.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Install package
shell: bash -l {0}
run: pip install . --no-deps
- name: check for fatal syntax errors
shell: bash -l {0}
run: |
flake8 pyscreener --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run tests
shell: bash -l {0}
run: |
pytest -k "not vina" --cov-report=xml --color=yes
- name: CodeCov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}