Skip to content

Commit 18153a3

Browse files
authored
Enable more of Python dev mode (#2623)
1 parent a89b428 commit 18153a3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1313
cancel-in-progress: true
1414

15-
env:
16-
# We can't yet run tests with PYTHONDEVMODE=1, let's at least show warnings
17-
PYTHONWARNINGS: always
18-
1915
jobs:
2016
test:
2117
name: Build and test
@@ -26,6 +22,13 @@ jobs:
2622
matrix:
2723
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2824
architecture: [x64, x86]
25+
env:
26+
# TODO: We can't yet run tests with PYTHONDEVMODE=1, let's emulated it as much as we can
27+
# https://docs.python.org/3/library/devmode.html#effects-of-the-python-development-mode
28+
PYTHONMALLOC: debug
29+
PYTHONASYNCIODEBUG: 1
30+
PYTHONWARNINGS: always
31+
# PYTHONFAULTHANDLER: 1 # This causes our tests to fail
2932

3033
steps:
3134
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)