diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8343e20..9cd2db2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,9 @@ on: pull_request: push: branches: [ staging, master ] + schedule: + # Weekly on Sunday + - cron: '0 0 * * 0' jobs: pre-commit: @@ -18,13 +21,22 @@ jobs: extra_args: --hook-stage manual --all-files checks: - name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} - runs-on: ${{ matrix.runs-on }} + name: Check Python ${{ matrix.python-version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - runs-on: [ubuntu-22.04, macos-13, windows-2022] + os: ["ubuntu-24.04", "macos-14", "windows-2022"] + python-version: ["3.10", "3.11", "3.12"] + include: + - os: ubuntu-22.04 + python-version: 3.7 + - os: ubuntu-24.04 + python-version: 3.8 + - os: ubuntu-24.04 + python-version: 3.9 + - os: ubuntu-24.04 + python-version: 3.13 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-latest.yml b/.github/workflows/test-latest.yml deleted file mode 100644 index a3bd02a..0000000 --- a/.github/workflows/test-latest.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Test Latest - -on: - workflow_dispatch: - schedule: - # Weekly on Sunday - - cron: '0 0 * * 0' - -jobs: - checks: - name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} - runs-on: ${{ matrix.runs-on }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - runs-on: [ubuntu-latest, macos-latest, windows-latest] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install package - run: python -m pip install .[test] - - name: Configure token access - run: | - viresclient set_token "https://vires.services/ows" ${{ secrets.VIRES_TOKEN_SWARM }} - viresclient set_default_server https://vires.services/ows - - name: Test package - run: python -m pytest -ra diff --git a/pyproject.toml b/pyproject.toml index 3d4edae..5987cc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,21 +17,22 @@ maintainers = [ license = { file = "LICENSE" } description = "A Python client for interacting with a VirES server" readme = "README.rst" -requires-python = ">=3.6" +requires-python = ">=3.7" classifiers = [ "License :: OSI Approved :: MIT License", "Topic :: Scientific/Engineering", "Intended Audience :: Science/Research", "Intended Audience :: Developers", "Operating System :: OS Independent", - "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Development Status :: 5 - Production/Stable", ] dynamic = ["version"]