-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (38 loc) · 1014 Bytes
/
ci.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
name: QuAcK CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
schedule:
- cron: "42 19 * * 6"
jobs:
build:
runs-on: ubuntu-20.04
name: Compilation and Tests
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gfortran gcc liblapack-dev libblas-dev wget python3 make m4 pkg-config
- name: Configuration
run: |
./configure -i ninja || :
- name: Compilation
run: |
bash -c "source quack.rc ; cd src ; make ; cd .. "
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyscf
- name: Run tests
run: |
bash -c "source quack.rc ; cd tests ; python create_database.py ; python lunch_bench.py -s light -t 1e-1"