diff --git a/.github/workflows/compilation.yml b/.github/workflows/ci.yml similarity index 56% rename from .github/workflows/compilation.yml rename to .github/workflows/ci.yml index 6750ceb..f6e23af 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,8 @@ on: pull_request: branches: - master + schedule: + - cron: "42 19 * * 6" jobs: @@ -31,11 +33,18 @@ jobs: - name: Compilation run: | - bash -c "source quack.rc ; cd src ; make" + bash -c "source quack.rc ; cd src ; make ; cd .. " - - name: Upload compiled binary - uses: actions/upload-artifact@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - name: fortran-binary - path: ./bin/QuAcK + 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" diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml deleted file mode 100644 index 5859cc6..0000000 --- a/.github/workflows/testing.yml +++ /dev/null @@ -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"