10
1
mirror of https://github.com/pfloos/quack synced 2025-01-03 01:55:57 +01:00

testing workflow

This commit is contained in:
Abdallah Ammar 2024-11-15 18:51:25 +01:00
parent ffb526857b
commit 3e5e88d521
2 changed files with 14 additions and 46 deletions

View File

@ -8,6 +8,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
schedule:
- cron: "42 19 * * 6"
jobs: jobs:
@ -31,11 +33,18 @@ jobs:
- name: Compilation - name: Compilation
run: | run: |
bash -c "source quack.rc ; cd src ; make" bash -c "source quack.rc ; cd src ; make ; cd .. "
- name: Upload compiled binary - name: Set up Python
uses: actions/upload-artifact@v3 uses: actions/setup-python@v4
with: with:
name: fortran-binary python-version: '3.x'
path: ./bin/QuAcK
- 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"

View File

@ -1,41 +0,0 @@
name: QuAcK Testing
on:
workflow_run:
workflows: ["QuAcK Compilation"]
types:
- completed
jobs:
test:
runs-on: ubuntu-20.04
name: Run Tests
steps:
- 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"