Skip to content

Commit

Permalink
test: test under python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dairiki committed Dec 12, 2023
1 parent f6134be commit 9e59e33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']

steps:
- uses: actions/checkout@v4
Expand All @@ -30,10 +30,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
# upgrading pip on 3.13-dev involves compiling zstandard
if: ${{ ! endsWith(matrix.python, '-dev') }}
run: python -m pip install --upgrade pip

- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install hatch hatch-vcs
run: pip install hatch hatch-vcs

- run: hatch run full

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: System :: Archiving :: Packaging",
]
Expand Down Expand Up @@ -84,7 +85,7 @@ lint = [
[tool.hatch.envs.test]
extra-dependencies = []
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311", "312"]
python = ["37", "38", "39", "310", "311", "312", "313"]

[tool.coverage.run]
branch = true
Expand Down

0 comments on commit 9e59e33

Please sign in to comment.