Skip to content

Commit

Permalink
Support Python 3.12 officially + small improvements to GitHub Actions…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
hartwork authored May 3, 2024
1 parent f1238c6 commit 62d42be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
Expand Down

0 comments on commit 62d42be

Please sign in to comment.