Skip to content

Commit

Permalink
CI(python): Enable printing of all Python warnings with PYTHONWARNINGS (
Browse files Browse the repository at this point in the history
OSGeo#4210)

Enables to print all occurrences of warnings, and shows all warnings.
  • Loading branch information
echoix authored and Mahesh1998 committed Sep 19, 2024
1 parent af2b534 commit 890d8ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
macos_build:
name: macOS build
runs-on: macos-14
env:
PYTHONWARNINGS: always
steps:
- name: Info
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
cancel-in-progress: true

runs-on: ${{ matrix.os }}
env:
PYTHONWARNINGS: always
strategy:
matrix:
os:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
FORCE_COLOR: 1 # for software including pip: https://force-color.org/
CLICOLOR_FORCE: 1 # for other software including ninja: https://bixense.com/clicolors/
PYTHONWARNINGS: always

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
cancel-in-progress: true

runs-on: ${{ matrix.os }}
env:
PYTHONWARNINGS: always
strategy:
matrix:
name:
Expand Down

0 comments on commit 890d8ea

Please sign in to comment.