Skip to content

Commit

Permalink
Run CI weekly on main (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder authored Nov 10, 2023
1 parent 482773d commit 588cddb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Weekly scheduled run

Tests are run on the `main` branch of the original fork of this repository on a weekly schedule, to ensure the cookiecutter template does not have outdated dependencies.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: tests

on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch: # for occasional debugging
schedule:
# Every Sunday at 3 AM
- cron: "0 3 * * 0"

jobs:
linting:
# scheduled workflows should not run on forks
if: (${{ github.event_name == 'schedule' }} && ${{ github.repository_owner == 'neuroinformatics-unit' }} && ${{ github.ref == 'refs/heads/main' }}) || (${{ github.event_name != 'schedule' }})
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v1
Expand Down

0 comments on commit 588cddb

Please sign in to comment.