diff --git a/.github/workflows/deptry.yml b/.github/workflows/deptry.yml new file mode 100644 index 0000000..f9277cf --- /dev/null +++ b/.github/workflows/deptry.yml @@ -0,0 +1,11 @@ +#SPDX-FileCopyrightText: 2024 Birger Schacht +#SPDX-License-Identifier: MIT +name: Run deptry dependency checker + +on: [push, pull_request] + +jobs: + deptry: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-deptry.yml@v0.4.1 + with: + src: "." diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 0000000..2fa100c --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -0,0 +1,12 @@ +#SPDX-FileCopyrightText: 2023 Birger Schacht +#SPDX-License-Identifier: MIT + +name: Run commit message linter +on: + pull_request: + +jobs: + gitlint: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/gitlint.yml@v0.3.4 + with: + comment: false diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..3c8713e --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2023 Birger Schacht +# SPDX-License-Identifier: MIT +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v3 + with: + release-type: python + package-name: sparql_fastapi + bump-minor-pre-major: true diff --git a/.github/workflows/ruff-formatter.yml b/.github/workflows/ruff-formatter.yml new file mode 100644 index 0000000..108ec8f --- /dev/null +++ b/.github/workflows/ruff-formatter.yml @@ -0,0 +1,12 @@ +#SPDX-FileCopyrightText: 2023 Birger Schacht +#SPDX-License-Identifier: MIT +name: Run ruff formatter + +on: [push, pull_request] + +jobs: + ruff: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-ruff.yml@v0.4.2 + with: + src: "." + options: "format --check" diff --git a/.github/workflows/ruff-linter.yml b/.github/workflows/ruff-linter.yml new file mode 100644 index 0000000..4f84d57 --- /dev/null +++ b/.github/workflows/ruff-linter.yml @@ -0,0 +1,11 @@ +#SPDX-FileCopyrightText: 2023 Birger Schacht +#SPDX-License-Identifier: MIT +name: Run ruff linter + +on: [push, pull_request] + +jobs: + ruff: + uses: acdh-oeaw/prosnet-workflows/.github/workflows/poetry-ruff.yml@v0.3.3 + with: + src: "."