Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, why this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It adds the missing button to the UI to let you manually trigger a build from https://github.com/python-trio/sniffio/actions/workflows/ci.yml

It will look something like:

image

You don't need it very often, but when you do, it's annoying to if it's not been enabled yet!


jobs:
Windows:
Expand All @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']

steps:
- name: Checkout
Expand All @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
check_formatting: ['0']
extra_name: ['']
include:
Expand All @@ -47,16 +47,11 @@ jobs:
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
if: "!endsWith(matrix.python, '-dev')"
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: pip
cache-dependency-path: test-requirements.txt
- name: Setup Python (dev)
uses: deadsnakes/action@v3.0.1
if: endsWith(matrix.python, '-dev')
with:
python-version: '${{ matrix.python }}'
- name: Run tests
run: ./ci.sh
env:
Expand All @@ -71,7 +66,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
steps:
- name: Checkout
uses: actions/checkout@v6
Expand All @@ -82,8 +77,25 @@ jobs:
allow-prereleases: true
cache: pip
cache-dependency-path: test-requirements.txt
- name: Set PYTHON_GIL
if: endsWith(matrix.python-version, 't')
run: |
echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
- name: Run tests
run: ./ci.sh
env:
# Should match 'name:' up above
JOB_NAME: 'macOS (${{ matrix.python }})'

alls-green:
if: always()
needs:
- Windows
- Ubuntu
- macOS
runs-on: ubuntu-latest
steps:
- name: Decide whether all jobs succeeded or not
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
]
requires-python = ">= 3.7"
requires-python = ">= 3.10"
dynamic = ["version"]

[project.urls]
Expand Down