diff --git a/.gitea/workflows/quality-call-test.yml b/.gitea/workflows/quality-call-test.yml new file mode 100644 index 0000000..d199220 --- /dev/null +++ b/.gitea/workflows/quality-call-test.yml @@ -0,0 +1,28 @@ +name: Quality call test + +on: + push: + branches: [ verify-quality-checks ] + +jobs: + clean-files: + permissions: + contents: read + uses: TirSystem/github-action/.gitea/workflows/quality-checks.yml@verify-quality-workflow + with: + working-directory: qc-clean + + seeded-failure: + permissions: + contents: read + uses: TirSystem/github-action/.gitea/workflows/quality-checks.yml@verify-quality-workflow + with: + working-directory: qc-seed + + nothing-to-check: + permissions: + contents: read + uses: TirSystem/github-action/.gitea/workflows/quality-checks.yml@verify-quality-workflow + with: + languages: python + working-directory: .gitea diff --git a/qc-clean/ok.py b/qc-clean/ok.py new file mode 100644 index 0000000..891ed62 --- /dev/null +++ b/qc-clean/ok.py @@ -0,0 +1,6 @@ +"""Clean example.""" + + +def add(a: int, b: int) -> int: + """Return the sum.""" + return a + b diff --git a/qc-clean/ok.sh b/qc-clean/ok.sh new file mode 100644 index 0000000..87b72c9 --- /dev/null +++ b/qc-clean/ok.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -eu +echo "hello" diff --git a/qc-seed/bad.py b/qc-seed/bad.py new file mode 100644 index 0000000..5aa7854 --- /dev/null +++ b/qc-seed/bad.py @@ -0,0 +1,2 @@ +import os +x=1 diff --git a/qc-seed/bad.sh b/qc-seed/bad.sh new file mode 100644 index 0000000..7f0ef33 --- /dev/null +++ b/qc-seed/bad.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +echo $1