Skip to content

Commit 13646e4

Browse files
authored
Merge pull request #935 from Debilski/feature/python-3.14
Add Python 3.14 to CI
2 parents fc59371 + 127b082 commit 13646e4

5 files changed

Lines changed: 21 additions & 31 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
deploy_docs:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0 # fetch all history and tags (needed for git describe)
16-
- name: Set up Python 3.13
17-
uses: actions/setup-python@v5
16+
- name: Set up Python 3.14
17+
uses: actions/setup-python@v6
1818
with:
19-
python-version: '3.13'
19+
python-version: '3.14'
2020
- name: Install sphinx and prepare repo
2121
run: |
2222
python -m pip install --upgrade pip

.github/workflows/pypi_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
name: Build and publish Python distributions to PyPI and TestPyPI
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717

18-
- name: Set up Python 3.13
19-
uses: actions/setup-python@v5
18+
- name: Set up Python 3.14
19+
uses: actions/setup-python@v6
2020
with:
21-
python-version: '3.13'
21+
python-version: '3.14'
2222

2323
- name: Install flit
2424
run: python -m pip install flit

.github/workflows/test_pytest.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,14 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, macos-latest, windows-latest, macos-13]
15-
python-version: ['3.10', '3.11', '3.12', '3.13']
16-
exclude:
17-
- os: macos-13
18-
python-version: '3.10'
19-
- os: macos-13
20-
python-version: '3.11'
21-
- os: macos-13
22-
python-version: '3.12'
23-
- os: macos-13
24-
python-version: '3.13'
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2516
timeout-minutes: 15
2617

2718
steps:
28-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2920
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@v6
3122
with:
3223
python-version: ${{ matrix.python-version }}
3324
- name: Install dependencies
@@ -81,7 +72,7 @@ jobs:
8172
name: Run ruff static checker
8273
runs-on: ubuntu-latest
8374
steps:
84-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@v5
8576
- uses: astral-sh/ruff-action@v3
8677

8778
tournament:
@@ -91,13 +82,13 @@ jobs:
9182
strategy:
9283
matrix:
9384
os: [ubuntu-latest, macos-latest]
94-
python-version: ["3.11", "3.12", "3.13"]
85+
python-version: ["3.12", "3.13", "3.14"]
9586
timeout-minutes: 15
9687

9788
steps:
98-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@v5
9990
- name: Set up Python ${{ matrix.python-version }}
100-
uses: actions/setup-python@v5
91+
uses: actions/setup-python@v6
10192
with:
10293
python-version: ${{ matrix.python-version }}
10394
- name: Install dependencies
@@ -117,13 +108,13 @@ jobs:
117108
strategy:
118109
matrix:
119110
os: [ubuntu-latest, macos-latest]
120-
python-version: ["3.12", "3.13"]
111+
python-version: ["3.12", "3.13", "3.14"]
121112
timeout-minutes: 5
122113

123114
steps:
124-
- uses: actions/checkout@v4
115+
- uses: actions/checkout@v5
125116
- name: Set up Python ${{ matrix.python-version }}
126-
uses: actions/setup-python@v5
117+
uses: actions/setup-python@v6
127118
with:
128119
python-version: ${{ matrix.python-version }}
129120
- name: Install dependencies

pelita/scripts/pelita_player.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ def player_handle_request(socket, poller, team, team_name_override=False, silent
190190
return False
191191

192192
finally:
193-
if reply is None:
194-
return
195-
if msg_id is not None:
193+
if reply is not None and msg_id is not None:
196194
# we use our own json_default_handler
197195
# to automatically convert numpy ints to json
198196
json_message = json.dumps(reply, default=json_default_handler)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
]
2324
urls = {Homepage = "https://github.com/ASPP/pelita"}
2425
requires-python = ">= 3.10"

0 commit comments

Comments
 (0)