-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (37 loc) · 1.28 KB
/
install_and_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
name: Installing Grad-DFT and running tests
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
PYSCF_CONFIG_FILE: ".github/workflows/pyscf_conf.py"
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Install extra example dependencies
run: |
pip install -e ".[examples]"
- name: Run unit tests
run: |
pytest -v tests/unit/test_eigenproblem.py
pytest -v tests/unit/test_loss.py
- name: Run integration tests
run: |
pytest -v tests/integration/test_non_xc_energy.py
pytest -v tests/integration/test_functional_implementations.py
pytest -v tests/integration/test_Harris.py
pytest -v tests/integration/test_predict_B88.py
pytest -v tests/integration/test_predict_B3LYP.py
pytest -v tests/integration/test_training.py