4
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 20:35:36 +01:00
quack/.github/workflows/ci.yml

51 lines
1014 B
YAML
Raw Normal View History

2024-11-16 13:38:16 +01:00
name: QuAcK CI
2024-11-15 11:30:55 +01:00
2024-11-15 18:39:23 +01:00
2024-11-15 11:30:55 +01:00
on:
push:
branches:
2024-11-26 01:30:41 +01:00
- master
2024-11-15 11:30:55 +01:00
pull_request:
branches:
2024-11-26 01:30:41 +01:00
- '**'
2024-11-15 18:51:25 +01:00
schedule:
- cron: "42 19 * * 6"
2024-11-15 11:30:55 +01:00
jobs:
2024-11-15 17:22:07 +01:00
build:
2024-11-15 11:30:55 +01:00
runs-on: ubuntu-20.04
2024-11-16 13:37:37 +01:00
name: Compilation and Tests
2024-11-15 11:30:55 +01:00
steps:
2024-11-15 17:22:07 +01:00
- 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: |
2024-11-15 18:51:25 +01:00
bash -c "source quack.rc ; cd src ; make ; cd .. "
2024-11-15 17:22:07 +01:00
2024-11-15 18:51:25 +01:00
- name: Set up Python
uses: actions/setup-python@v4
2024-11-15 17:22:07 +01:00
with:
2024-11-15 18:51:25 +01:00
python-version: '3.x'
2024-11-15 11:30:55 +01:00
2024-11-15 18:51:25 +01:00
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyscf
- name: Run tests
run: |
2024-11-15 18:59:11 +01:00
bash -c "source quack.rc ; cd tests ; python create_database.py ; python lunch_bench.py -s light -t 1e-1"