Skip to content

Commit 153cd9d

Browse files
committed
Switched to Python 3.12
1 parent 1a835a9 commit 153cd9d

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,57 @@ permissions:
1515

1616
jobs:
1717
noshadows:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
2222
- uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.8'
24+
python-version: '3.12'
2525
- run: pip install "tinycss2>=1.2.0"
2626
- run: python noshadows.py --tests
27-
env:
28-
PYTHONWARNINGS: error
27+
# env:
28+
# PYTHONWARNINGS: error
2929

3030
tracdjangoplugin:
31-
runs-on: ubuntu-20.04
31+
runs-on: ubuntu-24.04
3232
steps:
3333
- name: Checkout
3434
uses: actions/checkout@v4
3535
- uses: actions/setup-python@v5
3636
with:
37-
python-version: '3.8'
37+
python-version: '3.12'
38+
- name: Install system package dependencies
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get -y install subversion
3842
- name: Install requirements
3943
run: python -m pip install -r requirements.txt
4044
- name: Run tests
4145
run: python -m django test tracdjangoplugin.tests
4246
env:
4347
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
44-
PYTHONWARNINGS: error
48+
# PYTHONWARNINGS: error
4549

4650
traccheck:
47-
runs-on: ubuntu-20.04
51+
runs-on: ubuntu-24.04
4852
steps:
4953
- name: Checkout
5054
uses: actions/checkout@v4
5155
- uses: actions/setup-python@v5
5256
with:
53-
python-version: '3.8'
57+
python-version: '3.12'
58+
- name: Install system package dependencies
59+
run: |
60+
sudo apt-get update
61+
sudo apt-get -y install subversion
5462
- name: Install requirements
5563
run: python -m pip install -r requirements.txt
5664
- run: python traccheck.py lint trac-env/
5765
env:
5866
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
59-
PYTHONWARNINGS: error
67+
# PYTHONWARNINGS: error
6068
- run: python traccheck.py components --check .TRACFREEZE.txt trac-env/
6169
env:
6270
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
63-
PYTHONWARNINGS: error
71+
# PYTHONWARNINGS: error

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pull official base image
2-
FROM python:3.8-slim-bullseye
2+
FROM python:3.12-slim-bookworm
33

44
# set work directory
55
WORKDIR /code

0 commit comments

Comments
 (0)