Skip to content

Commit d353399

Browse files
seismanweiji14
andauthored
Run full tests only on Wednesday scheduled jobs (#1833)
Co-authored-by: Wei Ji <[email protected]>
1 parent 589332b commit d353399

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci_tests.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,16 @@ jobs:
133133
python -m build --sdist
134134
pip install dist/*
135135
136-
# Run the tests
137-
- name: Test with pytest
136+
# Run the regular tests
137+
- name: Run tests
138+
if: github.event.schedule != '0 0 * * 3'
138139
run: make test PYTEST_EXTRA="-r P"
139140

141+
# Run full tests including doctests on Wednesday
142+
- name: Run full tests
143+
if: github.event_name == 'schedule' && github.event.schedule == '0 0 * * 3'
144+
run: make fulltest PYTEST_EXTRA="-r P"
145+
140146
# Upload diff images on test failure
141147
- name: Upload diff images if any test fails
142148
uses: actions/upload-artifact@v3

doc/maintenance.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ There are 11 configuration files located in `.github/workflows`:
7979
2. `ci_tests.yaml` (Tests on Linux/macOS/Windows)
8080

8181
This is run on every commit to the *main* and Pull Request branches.
82-
It is also scheduled to run daily on the *main* branch.
82+
It is also scheduled to run regular tests daily and run full tests
83+
(including doctests) on Wednesday on the *main* branch.
8384
In draft Pull Requests, only two jobs on Linux are triggered to save on
8485
Continuous Integration resources:
8586

0 commit comments

Comments
 (0)