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
jlaehne committed Feb 11, 2025
1 parent 168b755 commit 8b85a94
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,34 @@ jobs:
timeout-minutes: 30
env:
MPLBACKEND: agg
PIP_SELECTOR: '[tests]'
PIP_ARGS: --upgrade -e
PYTEST_ARGS: --pyargs lumispy
PYTEST_ARGS_COVERAGE:
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows, macos]
PYTHON_VERSION: ['3.8', '3.12']
PIP_SELECTOR: ['[tests]',]
PYTHON_VERSION: ['3.9', '3.12']
include:
- os: ubuntu
PYTHON_VERSION: '3.9'
PIP_SELECTOR: '[tests]'
- os: ubuntu
PYTHON_VERSION: '3.10'
PIP_SELECTOR: '[tests]'
- os: ubuntu
PYTHON_VERSION: '3.11'
PIP_SELECTOR: '[tests, coverage]'
PYTEST_ARGS_COVERAGE: --cov=lumispy --cov-report=xml
LABEL: '/coverage'
LABEL: '-coverage'
- os: ubuntu
PYTHON_VERSION: '3.13'
# minimum
- os: ubuntu
PYTHON_VERSION: '3.9'
LABEL: '-minimum'
# oldest
- os: ubuntu
PYTHON_VERSION: '3.8'
LABEL: -release-oldest
# Matching pyproject.toml
DEPENDENCIES: hyperspy==1.7

steps:
- uses: actions/checkout@v4

Expand All @@ -48,6 +55,11 @@ jobs:
run: |
pip install ${{ env.PIP_ARGS }} .'${{ matrix.PIP_SELECTOR }}'
- name: Install oldest supported version
if: contains( matrix.LABEL, 'oldest')
run: |
pip install ${{ matrix.DEPENDENCIES }}
- name: Pip list
run: |
pip list
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
Expand Down

0 comments on commit 8b85a94

Please sign in to comment.