From 946ed9cb4b1410e996ed68cab4d9fa13b7438ed2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:43:33 -0600 Subject: [PATCH] chore(deps): pre-commit autoupdate (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.27.4](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.3...0.27.4) - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez-Mondragón --- .github/workflows/release.yml | 45 +++++++++++++---------------------- .pre-commit-config.yaml | 6 +++-- 2 files changed, 20 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a815d67..dbeb53f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,46 +1,33 @@ -name: Publish with Dynamic Versioning +name: Build on: - release: - types: [published] + push: permissions: contents: write id-token: write jobs: - publish: - name: Publish to PyPI + build: runs-on: ubuntu-latest - environment: publishing - env: - PIP_CONSTRAINT: .github/workflows/constraints.txt steps: - - name: Checkout code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: hynek/build-and-inspect-python-package@v2 - - name: Set up Python - uses: actions/setup-python@v5 + publish: + runs-on: ubuntu-latest + environment: + name: publishing + url: https://pypi.org/p/tap-dbt + needs: build + if: startsWith(github.ref, 'refs/tags/') + steps: + - uses: actions/download-artifact@v4 with: - python-version: "3.10" - - - name: Upgrade pip - run: | - pip install pip - pip --version - - - name: Install Poetry - run: | - pipx install poetry - pipx inject poetry poetry-dynamic-versioning[plugin] - poetry --version - poetry self show plugins - - - name: Build - run: poetry build - + name: Packages + path: dist - name: Upload wheel to release uses: svenstaro/upload-release-action@v2 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e4e3fc..d3f580b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,8 @@ ci: autofix_commit_msg: '[pre-commit.ci] auto fixes' autoupdate_schedule: weekly autoupdate_commit_msg: 'chore(deps): pre-commit autoupdate' + skip: + - check-dependabot repos: - repo: https://github.com/pre-commit/pre-commit @@ -26,13 +28,13 @@ repos: - id: pyproject-fmt - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.3 + rev: 0.27.4 hooks: - id: check-dependabot - id: check-github-workflows - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.14 + rev: v0.2.0 hooks: - id: ruff - id: ruff-format