From 12e31831db27ac34aaee451ec6377ebeef57070c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 13:59:43 +0000 Subject: [PATCH] CI: byte-compile check on push and pull requests Adds a lightweight GitHub Actions workflow that byte-compiles the weatherpre package, scripts and HF Space entry point, catching syntax errors without installing the heavy geo/ML dependencies. Co-authored-by: Longhao Wang <93301293+GISWLH@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xc747PDrxeDkpqm5JzFeyF --- .github/workflows/check.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..89ece03 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,17 @@ +name: check + +on: + push: + branches: [main] + pull_request: + +jobs: + compile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Byte-compile sources + run: python -m compileall -q weatherpre scripts hf