Skip to content

Commit

Permalink
Skip dependabot check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 5, 2024
1 parent 2e88d86 commit 923f7aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 30 deletions.
45 changes: 16 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = [
"poetry-core==1.6",
"poetry-core==1.9",
"poetry-dynamic-versioning",
]

Expand Down

0 comments on commit 923f7aa

Please sign in to comment.