From 9a8b3b1d9b8cdd1e26a198a799103d0c8e2b0e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Fri, 13 Nov 2026 12:28:32 -0800 Subject: [PATCH] chore: prepare repo for multiple branches --- .github/dependabot.yml | 17 ----------------- .github/workflows/ci.yml | 20 +++++++++++++++++--- .github/workflows/publish.yml | 7 +++++-- .github/workflows/tox.yml | 13 +++++++++---- .pre-commit-config.yaml | 6 ------ 5 files changed, 31 insertions(+), 32 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 328ae39..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "quarterly" - groups: - coatl-dev-actions: - patterns: - - "coatl-dev/actions/**" - coatl-dev-workflows: - patterns: - - "coatl-dev/workflows/**" - labels: ["dependencies"] - commit-message: - prefix: "ci" - include: "scope" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5627504..5882dba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,31 @@ name: ci on: - pull_request: push: branches: - - main + - '17' + pull_request: + branches: + - '17' jobs: + pre-commit: + uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1 + with: + checkout-ref: ${{ github.ref }} + skip-hooks: 'pylint' + python-version: | + 3.12 + 3.15 + pylint: - uses: coatl-dev/workflows/.github/workflows/pylint.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 + uses: coatl-dev/workflows/.github/workflows/pylint.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1 with: path: src + checkout-ref: ${{ github.ref }} tox: if: ${{ github.event_name == 'pull_request' }} uses: $/.github/workflows/tox.yml + with: + checkout-ref: ${{ github.ref }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd559ab..fd7604a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,12 +2,13 @@ name: publish on: release: - types: - - published + types: [published] jobs: tox: uses: $/.github/workflows/tox.yml + with: + checkout-ref: ${{ github.event.release.tag_name }} pypi-upload: needs: tox @@ -15,6 +16,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.release.tag_name }} - name: Upload package to PyPI uses: coatl-dev/actions/pypi-upload@499c77f2bc6f909d372849058517ca2e39ce16d4 # v7.1.3 diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index ff3bd6c..48f2b44 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -1,17 +1,22 @@ -name: tox - on: workflow_call: + inputs: + checkout-ref: + required: true + type: string jobs: tox-package: - uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 + uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1 + with: + checkout-ref: ${{ inputs.checkout-ref }} tox-stubs: - uses: coatl-dev/workflows/.github/workflows/tox.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 + uses: coatl-dev/workflows/.github/workflows/tox.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1 with: python-versions: | 3.10 3.11 3.12 working-directory: stubs + checkout-ref: ${{ inputs.checkout-ref }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6af1190..97cfa4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,3 @@ -ci: - autoupdate_commit_msg: 'build(deps): pre-commit autoupdate' - autofix_commit_msg: 'style: apply auto fixes with pre-commit' - skip: - - pylint - repos: - repo: https://github.com/aio-libs/sort-all rev: v1.3.0