Skip to content

Commit 45b0d76

Browse files
committed
Add GitHub Actions test suite
1 parent 1af503d commit 45b0d76

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: "read"
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
env:
12+
FORCE_COLOR: 1
13+
14+
jobs:
15+
tests:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
20+
os: ["ubuntu-24.04"]
21+
include:
22+
# Homebrew
23+
- python-version: "3.14"
24+
os: "macos-15"
25+
26+
runs-on: ${{ matrix.os }}
27+
name: ${{ fromJson('{"macos-15":"macOS","windows-latest":"Windows","ubuntu-24.04":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }}
28+
timeout-minutes: 10
29+
steps:
30+
- name: "Checkout repository"
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
with:
33+
persist-credentials: false
34+
35+
- name: "Setup Python ${{ matrix.python-version }}"
36+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
allow-prereleases: true
40+
check-latest: true
41+
42+
- name: "Run tests"
43+
run: |
44+
python -m pip install nox
45+
nox -s "tests-${{ matrix.python-version }}"

0 commit comments

Comments
 (0)