Skip to content

Commit

Permalink
Add support for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jan 10, 2025
1 parent dc67136 commit ef6e307
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test:
name: "Test Python ${{ matrix.python-version }}"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
strategy:
fail-fast: false
matrix:
Expand All @@ -18,6 +18,7 @@ jobs:
"3.10",
"3.11",
"3.12",
"3.13",
]
steps:
- name: "Check out repository"
Expand All @@ -33,10 +34,10 @@ jobs:
- name: "Install tox"
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install tox
- name: "Run tox"
run: |
tox -- --cov metsrw --cov-report xml:coverage.xml
tox -e py3 -- --cov metsrw --cov-report xml:coverage.xml
- name: "Upload coverage report"
if: github.repository == 'artefactual-labs/mets-reader-writer'
uses: "codecov/codecov-action@v4"
Expand All @@ -48,14 +49,14 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
name: "Lint"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: "3.x"
cache: "pip"
cache-dependency-path: |
requirements.txt
Expand All @@ -69,14 +70,14 @@ jobs:
tox -e linting
docs:
name: "Docs"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: "3.x"
cache-dependency-path: |
requirements.txt
requirements-dev.txt
Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
authors = [
{name = "Artefactual Systems Inc.", email = "[email protected]"}
Expand Down Expand Up @@ -106,14 +107,7 @@ omit = [
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310,311,312}, linting, docs
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
envlist = py3{9,10,11,12,13}, linting, docs
[testenv]
skip_install = true
Expand Down

0 comments on commit ef6e307

Please sign in to comment.