From 2bb489a3800364f1624194ccd3b2ec5deaf0377a Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Sat, 10 Oct 2026 16:09:50 +0800 Subject: [PATCH] Throwaway: call the quality-checks workflow with clean and seeded files (TirSystem/github-action issue 17) --- .gitea/workflows/quality-call-test.yml | 28 ++++++++++++++++++++++++++ qc-clean/ok.py | 6 ++++++ qc-clean/ok.sh | 3 +++ qc-seed/bad.py | 2 ++ qc-seed/bad.sh | 2 ++ 5 files changed, 41 insertions(+) create mode 100644 .gitea/workflows/quality-call-test.yml create mode 100644 qc-clean/ok.py create mode 100644 qc-clean/ok.sh create mode 100644 qc-seed/bad.py create mode 100644 qc-seed/bad.sh 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