Skip to content

Commit

Permalink
ci: Move PYTHONWARNINGS filter on build to weekly cron job (#2337)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert authored Sep 20, 2023
1 parent 4ec7bf3 commit 66ecdd8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- release/v*
release:
types: [published]
# Run weekly at 1:23 UTC
schedule:
- cron: '23 1 * * 0'
workflow_dispatch:
inputs:
publish:
Expand Down Expand Up @@ -44,7 +47,13 @@ jobs:
python -m pip install build twine
python -m pip list
- name: Build a wheel and a sdist
- name: Build a sdist and wheel
if: github.event_name != 'schedule'
run: |
python -m build .
- name: Build a sdist and wheel and check for warnings
if: github.event_name == 'schedule'
run: |
PYTHONWARNINGS=error,default::DeprecationWarning python -m build .
Expand Down

0 comments on commit 66ecdd8

Please sign in to comment.