From 62d42beb19fc499949ed10354ca1df1be5d4bbe4 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 4 May 2024 00:26:50 +0200 Subject: [PATCH] Support Python 3.12 officially + small improvements to GitHub Actions CI (#3) * Add support for Python 3.11 and 3.12 * test.yml: Reduce CI to oldest and most recent supported version of Python .. to save resources * test.yml: Drop branch limit for CI * test.yml: Reduce permissions to minimum for security * test.yml: Run once a weak to detect when image changes break current CI * test.yml: Bump actions into the present --- .github/workflows/test.yml | 14 +++++++++----- setup.py | 2 ++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf64e07..3271694 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,15 @@ name: test +# Drop permissions to minimum for security +permissions: + contents: read + on: push: - branches: [ master ] pull_request: - branches: [ master ] + schedule: + - cron: '0 16 * * 5' # Every Friday 4pm jobs: build: @@ -16,12 +20,12 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.12"] # no particular need for the in-between steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/setup.py b/setup.py index bb24d72..631abb6 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,8 @@ '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', 'Intended Audience :: Developers', 'Topic :: Software Development :: Quality Assurance', ),