From c648e96c3ff0a27b734a04f65186e4410a154116 Mon Sep 17 00:00:00 2001 From: gyt Date: Thu, 9 Jul 2026 13:57:14 -0400 Subject: [PATCH] ci: add workflow --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8c3981d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: [push] +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: { python-version: "3.12" } + - name: Syntax check + run: | + for f in $(find . -name "*.py" -not -path "./download/*"); do + python3 -m py_compile "$f" && echo "OK: $f" || echo "FAIL: $f" + done + - name: Config validation + run: | + for f in $(find . -name "*.toml" -o -name "*.cfg"); do + echo "Config: $f" + cat "$f" | head -5 + done