Skip to content
Merged
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: 31 additions & 1 deletion .github/workflows/package-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ name: Run Package Verifications
on:
push:
branches: [ "master" ]
paths-ignore:
- "*.md"

pull_request:
branches: [ "master" ]
paths-ignore:
- "*.md"

jobs:
lint:
Expand Down Expand Up @@ -35,9 +40,34 @@ jobs:
run: |
ruff check .

test:
build-check:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine

- name: Build package
run: |
python -m build

- name: Check package metadata
run: |
twine check dist/*

test:
runs-on: ubuntu-latest
needs: build-check
strategy:
fail-fast: false
matrix:
Expand Down