diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a40d822f9..e2fb371b0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 028a2e667..0ea5ce5f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",