2024-11-15 17:22:07 +01:00
|
|
|
name: QuAcK Testing
|
|
|
|
|
2024-11-15 18:39:23 +01:00
|
|
|
|
2024-11-15 17:22:07 +01:00
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["QuAcK Compilation"]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
2024-11-15 18:39:23 +01:00
|
|
|
|
2024-11-15 17:22:07 +01:00
|
|
|
jobs:
|
2024-11-15 18:45:10 +01:00
|
|
|
|
2024-11-15 17:22:07 +01:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-20.04
|
2024-11-15 18:36:56 +01:00
|
|
|
name: Run Tests
|
|
|
|
|
2024-11-15 18:45:10 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2024-11-15 17:22:07 +01:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Download compiled binary from previous workflow
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: fortran-binary
|
|
|
|
path: ./bin/QuAcK
|
|
|
|
|
|
|
|
- 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 lunch_bench.py -s light -t 1e-1"
|