-
Notifications
You must be signed in to change notification settings - Fork 69
50 lines (42 loc) · 1.24 KB
/
test-pip.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
# Testing with packages that are available from PIP
# this is faste than the tests needing conda
name: Tests with Pip
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '36 21 * * 6'
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# most of the dependencies
- name: Install dependencies with PIP
run: |
pip install numpy networkx six pytest pytest-cov ase
# rdkit: PyPi only supplies it for 3.7 and above
- name: Install rdkit
if: matrix.python-version != '3.6'
run: |
pip install rdkit
- name: pytest
run: |
pytest -v --cov=geometric geometric/tests/
# - name: Codecov upload
# uses: codecov/codecov-action@v1
# with:
# flags: unittests-pip
# fail_ci_if_error: true
# verbose: true