Skip to content

Commit 3cb7b4a

Browse files
Add GitHub workflow to test with Python 3.7 - 3.14
1 parent d82b23c commit 3cb7b4a

File tree

3 files changed

+58
-4
lines changed

3 files changed

+58
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
schedule:
12+
# Daily at 12:00 UTC
13+
- cron: "0 12 * * *"
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version:
22+
- "3.7"
23+
- "3.8"
24+
- "3.9"
25+
- "3.10"
26+
- "3.11"
27+
- "3.12"
28+
- "3.13"
29+
- "3.14"
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
34+
- name: Set up Python
35+
id: setup-python
36+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
allow-prereleases: true
40+
41+
- name: Install Poetry
42+
run: pipx install poetry
43+
44+
- name: Install dependencies
45+
run: |
46+
poetry env use ${{ steps.setup-python.outputs.python-path }}
47+
poetry install
48+
49+
- name: Run tests
50+
run: poetry run pytest

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3434
with:
3535
# We must fetch at least the immediate parents so that if this is
3636
# a pull request then we can checkout the head.
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ classifiers = ['Development Status :: 5 - Production/Stable',
1919
'Programming Language :: Python :: 3.8',
2020
'Programming Language :: Python :: 3.9',
2121
'Programming Language :: Python :: 3.10',
22+
'Programming Language :: Python :: 3.11',
23+
'Programming Language :: Python :: 3.12',
24+
'Programming Language :: Python :: 3.13',
25+
'Programming Language :: Python :: 3.14',
2226
'Topic :: Internet :: WWW/HTTP',
2327
'Topic :: Software Development :: Libraries :: Python Modules',
2428
'Topic :: Utilities']

0 commit comments

Comments
 (0)