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
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:
${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
tests:
name: tests / ${{ matrix.os }} / ${{ matrix.python-version }}
Expand All @@ -28,10 +30,12 @@ jobs:
python-version: pypy3.10

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# Get Python to test against
- uses: actions/setup-python@v5
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand All @@ -42,10 +46,13 @@ jobs:
# prettier-ignore
- run: >
nox
-s test-${{ matrix.python-version }}
doctest-${{ matrix.python-version }}
-s test-${PYTHON_VERSION}
doctest-${PYTHON_VERSION}
--error-on-missing-interpreters
if: matrix.python-version != 'pypy3.10'
Comment thread
Secrus marked this conversation as resolved.
shell: bash
env:
PYTHON_VERSION: ${{ matrix.python-version }}

- run: nox --error-on-missing-interpreters -s test-pypy3 doctest-pypy3
if: matrix.python-version == 'pypy3.10'
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ on:

permissions: {}

concurrency:
group: >-
${{ github.workflow }}-
${{ github.ref_type }}-
${{ github.event.pull_request.number || github.sha }}
cancel-in-porgress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- run: pipx run build

- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: distfiles
path: dist/
Expand All @@ -30,14 +37,14 @@ jobs:
name: release
url: https://pypi.org/project/installer/
permissions:
id-token: write
id-token: write # trusted publishing + attestations
needs: build
steps:
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: distfiles
path: dist/

- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
print-hash: true
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ repos:
hooks:
- id: ruff-check
- id: ruff-format

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.30.1
hooks:
- id: zizmor
args: ["--pedantic"]
Loading