Skip to content

Commit 19d635b

Browse files
authored
Test on Python 3.12 (#254)
1 parent 5b254e4 commit 19d635b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [ubuntu-latest, macos-latest]
12-
python-version: ["3.8", "3.9", "3.10", "3.11"]
11+
os: [ubuntu-latest]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
include:
14+
- os: macos-latest
15+
python-version: "3.12"
1316

1417
steps:
1518
- uses: actions/checkout@v4
@@ -28,12 +31,16 @@ jobs:
2831
- name: Run twisted tests
2932
run: tox -e py-twisted
3033

31-
- name: Upload coverage report
34+
- name: Upload coverage report (Linux)
35+
if: runner.os == 'Linux'
3236
run: |
33-
if [ "${{ runner.os }}" = "Linux" ]; then
34-
curl -Os https://uploader.codecov.io/latest/linux/codecov
35-
else
36-
curl -Os https://uploader.codecov.io/latest/macos/codecov
37-
fi
37+
curl -Os https://uploader.codecov.io/latest/linux/codecov
38+
chmod +x codecov
39+
./codecov
40+
41+
- name: Upload coverage report (macOS)
42+
if: runner.os == 'macOS'
43+
run: |
44+
curl -Os https://uploader.codecov.io/latest/macos/codecov
3845
chmod +x codecov
3946
./codecov

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"Programming Language :: Python :: 3.9",
2727
"Programming Language :: Python :: 3.10",
2828
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
2930
"Framework :: Scrapy",
3031
"Intended Audience :: Developers",
3132
"Topic :: Internet :: WWW/HTTP",

0 commit comments

Comments
 (0)