Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: dependency resolution
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
- ".github/workflows/dependency-resolution.yml"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
- ".github/workflows/dependency-resolution.yml"
|
|
workflow_dispatch: {}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
resolve:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Exercise both ends of the supported range in project.requires-python.
|
|
python-version: ["3.11", "3.13"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Check lockfile freshness
|
|
run: uv lock --check
|
|
|
|
- name: Install Python
|
|
run: uv python install ${{ matrix.python-version }}
|
|
|
|
- name: Check chapter extras
|
|
shell: bash
|
|
run: |
|
|
for extra in ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 all; do
|
|
echo "::group::Python ${{ matrix.python-version }} - $extra"
|
|
uv sync --locked --dry-run \
|
|
--python "${{ matrix.python-version }}" \
|
|
--extra "$extra"
|
|
echo "::endgroup::"
|
|
done
|