Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI]: Add DownstreamTester nightly tests #170

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/downstreamtester.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions DownstreamTester.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"repo":{
"name": "VoronoiFVM",
"url": "https://github.com/WIAS-PDELib/VoronoiFVM.jl"
}
}
Loading