Skip to content

Commit ab1e909

Browse files
committed
fixed PYTHONWARNINGS
1 parent 153cd9d commit ab1e909

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ concurrency:
1313
permissions:
1414
contents: read
1515

16+
env:
17+
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
18+
PYTHONWARNINGS: >
19+
error,
20+
default:pkg_resources::trac,
21+
default:Deprecated call to `pkg_resources.declare_namespace::pkg_resources,
22+
default:::passlib,default:version_info::trac.db.sqlite_backend,
23+
1624
jobs:
1725
noshadows:
1826
runs-on: ubuntu-24.04
@@ -24,8 +32,6 @@ jobs:
2432
python-version: '3.12'
2533
- run: pip install "tinycss2>=1.2.0"
2634
- run: python noshadows.py --tests
27-
# env:
28-
# PYTHONWARNINGS: error
2935

3036
tracdjangoplugin:
3137
runs-on: ubuntu-24.04
@@ -43,9 +49,6 @@ jobs:
4349
run: python -m pip install -r requirements.txt
4450
- name: Run tests
4551
run: python -m django test tracdjangoplugin.tests
46-
env:
47-
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
48-
# PYTHONWARNINGS: error
4952

5053
traccheck:
5154
runs-on: ubuntu-24.04
@@ -61,11 +64,7 @@ jobs:
6164
sudo apt-get -y install subversion
6265
- name: Install requirements
6366
run: python -m pip install -r requirements.txt
64-
- run: python traccheck.py lint trac-env/
65-
env:
66-
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
67-
# PYTHONWARNINGS: error
68-
- run: python traccheck.py components --check .TRACFREEZE.txt trac-env/
69-
env:
70-
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
71-
# PYTHONWARNINGS: error
67+
- name: Lint Trac configuration
68+
run: python traccheck.py lint trac-env/
69+
- name: Check frozen Trac components
70+
run: python traccheck.py components --check .TRACFREEZE.txt trac-env/

0 commit comments

Comments
 (0)