-
Notifications
You must be signed in to change notification settings - Fork 175
48 lines (40 loc) · 1.21 KB
/
test.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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
if: github.repository_owner == 'hackingmaterials' # don't run on forks
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
cache: pip
cache-dependency-path: |
setup.py
python-version: 3.8
- name: Install OpenBabel
run: |
# underlying C++ lib needed for Python openbabel wrapper installed by `pip install .`
sudo apt-get install libopenbabel-dev
# https://github.com/openbabel/openbabel/issues/2408#issuecomment-1014466193
sudo ln -s /usr/include/openbabel3 /usr/local/include/openbabel3
- name: Install phono3py
run: |
conda install -c conda-forge phono3py
- name: Install dependencies
run: |
pip install .[complete]
- name: pytest
run: |
pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate