From 35cffbcf916ac05a02d72e1da573c51f6036ebce Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Feb 2026 21:29:01 +0000 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'