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

Isolate scheduled tests #186

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
name: GitHub CI
name: Run Tests

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
# nightly tests at 8:00 UTC
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
types: run-test
workflow_call:

defaults:
run:
Expand Down Expand Up @@ -91,3 +79,4 @@ jobs:
- name: Run Prescient Simulator Tests
run: |
pytest -v prescient/simulator/tests/test_simulator.py

18 changes: 18 additions & 0 deletions .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test Changes

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
# Allow it to be manually triggered as well
workflow_dispatch:

jobs:
call-run-tests:
uses: ./.github/workflows/run-tests.yml

10 changes: 10 additions & 0 deletions .github/workflows/weekly-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Weekly Tests

on:
schedule:
- cron: 58 7 * * 0

jobs:
call-run-tests:
uses: ./.github/workflows/run-tests.yml

Loading