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
14 changes: 11 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
# Run builds nightly to catch incompatibilities with new marshmallow releases
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.name }}
Expand All @@ -23,17 +25,21 @@ jobs:
- { name: "3.14-madev", tox: py314-marshmallowdev }
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
persist-credentials: false
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
enable-cache: true
- run: uv run tox -e${{ matrix.tox }}
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
persist-credentials: false
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
enable-cache: true
- run: uv build
- run: uvx twine check --strict dist/*
Expand All @@ -49,8 +55,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
persist-credentials: false
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with: # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
enable-cache: true
- run: uv run tox -e lint
publish-to-pypi:
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ repos:
hooks:
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.24.0
hooks:
- id: zizmor
- repo: https://github.com/asottile/blacken-docs
rev: 1.20.0
hooks:
Expand Down