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 39e471b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
50 changes: 40 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,50 @@ jobs:
MPLBACKEND: agg
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']
PYTHON_VERSION: ['3.10', '3.12']
PIP_SELECTOR: ['[tests]',]
include:
- os: ubuntu
PYTHON_VERSION: '3.9'
PYTHON_VERSION: '3.11'
PIP_SELECTOR: '[tests]'
- os: ubuntu
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.13'
PIP_SELECTOR: '[tests]'
# dev and coverage
- os: ubuntu
PYTHON_VERSION: '3.11'
PIP_SELECTOR: '[tests, coverage]'
PIP_SELECTOR: '[tests]'
PYTEST_ARGS_COVERAGE: --cov=lumispy --cov-report=xml
LABEL: '/coverage'
LABEL: '-coverage'
# minimum
- os: ubuntu
PYTHON_VERSION: '3.9'
PIP_SELECTOR: '[tests]'
LABEL: '-minimum'
# oldest
- os: ubuntu
PYTHON_VERSION: '3.9'
PIP_SELECTOR: '[tests]'
LABEL: -release-oldest
# Matching pyproject.toml
DEPENDENCIES: hyperspy==1.7.1
- os: ubuntu
PYTHON_VERSION: '3.9'
PIP_SELECTOR: '[tests]'
LABEL: -release-oldest
# Matching pyproject.toml
DEPENDENCIES: hyperspy==1.7.2
- os: ubuntu
PYTHON_VERSION: '3.9'
PIP_SELECTOR: '[tests]'
LABEL: -release-oldest
# Matching pyproject.toml
DEPENDENCIES: hyperspy==1.7.3

steps:
- uses: actions/checkout@v4

Expand All @@ -48,17 +73,22 @@ jobs:
run: |
pip install ${{ env.PIP_ARGS }} .'${{ matrix.PIP_SELECTOR }}'
- name: Pip list
run: |
pip list
- name: Install (HyperSpy dev)
# Test against the hyperspy `RELEASE_next_minor` branch
if: ${{ matrix.PYTEST_ARGS_COVERAGE }}
shell: bash
run: |
pip install https://github.com/hyperspy/hyperspy/archive/RELEASE_next_minor.zip
- name: Install oldest supported version
if: contains( matrix.LABEL, 'oldest')
run: |
pip install ${{ matrix.DEPENDENCIES }}
- name: Pip list
run: |
pip list
- name: Run test suite
run: |
pytest ${{ env.PYTEST_ARGS }} ${{ matrix.PYTEST_ARGS_COVERAGE }}
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 39e471b

Please sign in to comment.