-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (47 loc) · 1.22 KB
/
tests.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
51
name: Run PySCF Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ['3.12']
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0' # any version from https://github.com/mamba-org/micromamba-releases
environment-name: run_tests
init-shell: >-
bash
powershell
cache-environment: false
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies and build
run: |
sudo apt-get -qq install gcc cmake
- name: Build things
run: |
source .github/workflows/load_conda.sh
source .github/workflows/mm_install_torch.sh
pip install .
python scripts/download_functionals.py
- name: Test with unittest
run: |
source .github/workflows/load_conda.sh
sh .github/workflows/run_tests.sh