Skip to content

Commit 66ecdd8

Browse files
ci: Move PYTHONWARNINGS filter on build to weekly cron job (#2337)
* Move PYTHONWARNINGS filter to run on a weekly cron job to avoid interrupting normal development with errors due to warnings outside of direct user control.
1 parent 4ec7bf3 commit 66ecdd8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish-package.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- release/v*
1212
release:
1313
types: [published]
14+
# Run weekly at 1:23 UTC
15+
schedule:
16+
- cron: '23 1 * * 0'
1417
workflow_dispatch:
1518
inputs:
1619
publish:
@@ -44,7 +47,13 @@ jobs:
4447
python -m pip install build twine
4548
python -m pip list
4649
47-
- name: Build a wheel and a sdist
50+
- name: Build a sdist and wheel
51+
if: github.event_name != 'schedule'
52+
run: |
53+
python -m build .
54+
55+
- name: Build a sdist and wheel and check for warnings
56+
if: github.event_name == 'schedule'
4857
run: |
4958
PYTHONWARNINGS=error,default::DeprecationWarning python -m build .
5059

0 commit comments

Comments
 (0)