diff --git a/.github/workflows/main_tests.yml b/.github/workflows/run-tests.yml similarity index 89% rename from .github/workflows/main_tests.yml rename to .github/workflows/run-tests.yml index 57cf5d2..2620aa4 100644 --- a/.github/workflows/main_tests.yml +++ b/.github/workflows/run-tests.yml @@ -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: @@ -91,3 +79,4 @@ jobs: - name: Run Prescient Simulator Tests run: | pytest -v prescient/simulator/tests/test_simulator.py + diff --git a/.github/workflows/test-changes.yml b/.github/workflows/test-changes.yml new file mode 100644 index 0000000..f58e18a --- /dev/null +++ b/.github/workflows/test-changes.yml @@ -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 + diff --git a/.github/workflows/weekly-tests.yml b/.github/workflows/weekly-tests.yml new file mode 100644 index 0000000..75de3b5 --- /dev/null +++ b/.github/workflows/weekly-tests.yml @@ -0,0 +1,10 @@ +name: Weekly Tests + +on: + schedule: + - cron: 58 7 * * 0 + +jobs: + call-run-tests: + uses: ./.github/workflows/run-tests.yml +