mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
c1d789f279
## About That's just maintenance. In this case, streamline the CI configuration for improved ergonomics and future proofing, see GH-605. ## Details - `activate-environment: true` of newer `astral-sh/setup-uv@v7` is the killer feature here, which wasn't available before. - Configuring `cache-dependency-glob: pyproject.toml` isn't needed, because the recipe already employs an excellent default configuration that includes this and other project metadata files. - The adjustments in `test_cli` were needed because of a different PyPy version installed by `setup-uv`. This will yield a report to Astral maintainers, unrelated to this patch.
51 lines
991 B
YAML
51 lines
991 B
YAML
name: "Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request: ~
|
|
workflow_dispatch:
|
|
|
|
# Cancel redundant in-progress jobs.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
test:
|
|
name: "Python ${{ matrix.python-version }}"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [
|
|
"3.10",
|
|
"3.11",
|
|
"3.12",
|
|
"3.13",
|
|
"3.14",
|
|
"3.14t",
|
|
"pypy3.11",
|
|
]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
activate-environment: true
|
|
enable-cache: true
|
|
cache-suffix: ${{ matrix.python-version }}
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install package
|
|
run: uv pip install '.[develop,test]'
|
|
|
|
- name: Run tests
|
|
run: pytest
|