From 5c64c897c5fd60eb5a1cd6e2d86541e391088867 Mon Sep 17 00:00:00 2001 From: Jan Philipp Thiele Date: Thu, 6 Feb 2025 16:15:35 +0100 Subject: [PATCH] [CI]: Add DownstreamTester nightly tests --- .github/workflows/downstreamtester.yml | 56 ++++++++++++++++++++++++++ DownstreamTester.json | 6 +++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/downstreamtester.yml create mode 100644 DownstreamTester.json diff --git a/.github/workflows/downstreamtester.yml b/.github/workflows/downstreamtester.yml new file mode 100644 index 000000000..513847104 --- /dev/null +++ b/.github/workflows/downstreamtester.yml @@ -0,0 +1,56 @@ +# Set up DownstreamTester.jl to run nightly jobs + +name: DownstreamTester + + +on: + schedule: + - cron: 0 6 * * * # Every day at 6:00 + + #Allow manual triggering of workflow + workflow_dispatch: + +jobs: + nightly: + runs-on: ubuntu-latest + + env: + ISSUETOKEN: ${{secrets.ISSUE_TOKEN}} + + steps: + # Check out master branch (to get the config file) + - uses: actions/checkout@v4 + with: + path: "master" + + # Check out logs branch into testdeps/logs + - uses: actions/checkout@v4 + with: + ref: DownstreamTester/nightlylogs + path: "testdeps/logs" + + # Download nightly version of Julia + - uses: julia-actions/setup-julia@v2 + with: + version: 'nightly' + + - name: setup git + run: | + git config --global user.email "198082523+pdelib-downstreamtester@users.noreply.github.com" + git config --global user.name "PDELib Downstreamtester" + + + # Add DownstreamTester to local Julia environment and run nightly() + - name: run nightly() + working-directory: ./master + run: | + julia -e ' + using Pkg + Pkg.add(url="https://github.com/jpthiele/DownstreamTester.jl") + using DownstreamTester + DownstreamTester.nightly()' + + # Save the daily logs to the logs branch + - name: commit logs + working-directory: ./testdeps/logs + run: git push diff --git a/DownstreamTester.json b/DownstreamTester.json new file mode 100644 index 000000000..07a32930c --- /dev/null +++ b/DownstreamTester.json @@ -0,0 +1,6 @@ +{ +"repo":{ + "name": "VoronoiFVM", + "url": "https://github.com/WIAS-PDELib/VoronoiFVM.jl" +} +}