-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea11021
commit 2ffd960
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
python-tests: | ||
name: 🐍 ${{ matrix.runs-on }} | ||
runs-on: ${{ matrix.runs-on }} | ||
matrix: # Define a matrix of different Python versions | ||
runs-on: [ubuntu-latest, windows-latest] | ||
session: [minimums, tests] | ||
env: | ||
FORCE_COLOR: 3 | ||
GITHUB_TOKEN: ${{ github.token }} | ||
steps: | ||
# check out the repository (including submodules and all history) | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
# set up MSVC development environment (Windows only) | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
# set up uv for faster Python package management | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "latest" | ||
enable-cache: true | ||
# set up nox for convenient testing | ||
- uses: wntrblm/[email protected] | ||
# run the nox minimums session (assumes a nox session named "minimums" exists) with coverage | ||
- name: 🐍 Test with minimal versions | ||
run: nox -s ${{matrix.session}} --verbose |