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
37 changes: 37 additions & 0 deletions .github/workflows/check-public-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check Public API

on:
pull_request:
paths-ignore:
- "**/*.md"
- ".github/**"
- "scripts/**"
- "*.json"
- "*.nix"
- "*.lock"
- ".gitignore"
- ".gitmodules"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
check-public-api:
runs-on: ubuntu-latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is such a cool way to use uv. Just rely on a Ubuntu container provided by GitHub, and then rely on uv style dependencies to run the script. Very nice!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

thanks I'm a big fan of PEP 723/uv scripts!

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Install uv
run: pip install uv

- name: Check public API
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
uv run --script scripts/check_public_api.py --base-ref "$BASE_SHA"
Loading