From 4e03724a6beb56822ef10ce2c80251b5b4d81412 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 5 Apr 2026 00:43:12 +0100 Subject: [PATCH] add publish+ruff workflows --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/ruff.yml | 19 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..70e6659 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: 'Publish' + +on: + release: + types: [published] + push: + tags: + - 'v*.*.*' + +jobs: + run: + runs-on: ubuntu-latest + environment: + name: pypi + permissions: + id-token: write + contents: read + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Install uv + uses: astral-sh/setup-uv@v7 + - name: Install Python 3.13 + run: uv python install 3.13 + - name: Build + run: uv build + - name: Publish + run: uv publish diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..72ff650 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,19 @@ +name: Ruff + +on: + push: + branches: [main] + + pull_request: + branches: [main] + + workflow_dispatch: + +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: astral-sh/ruff-action@v3 + with: + args: 'format --check --diff'