From c79480eddd0aa432373db72e86394cab09aa3723 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Sun, 18 Oct 2026 20:57:10 +0200 Subject: [PATCH] chore: run CI on both GitHub and Gitea Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ CLAUDE.md | 2 +- docs/deployment.md | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) 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..1cea647 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + branches: [development] + push: + branches: [development, main] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + + - run: pip install -r requirements.txt + + # No linter or test suite is configured for this project yet. + # This is a lightweight sanity check (syntax/import compile), not a test run. + - run: python3 -m py_compile maskarr.py diff --git a/CLAUDE.md b/CLAUDE.md index 2f3287b..1000fc1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,7 +22,7 @@ Everything lives in `maskarr.py`: an `http.server`-based proxy that forwards req - No `development` branch exists yet; CI and the version workflow reference it per the standard shape, but they won't trigger until it's created. ## Deployment -Docker image published to GHCR only, on push to `main`/tags (`.github/workflows/docker-publish.yml`). CI and version workflows live in `.gitea/workflows/`. See `docs/deployment.md` for systemd and Docker instructions. +Docker image published to GHCR only, on push to `main`/tags (`.github/workflows/docker-publish.yml`). Version workflow lives in `.gitea/workflows/`; CI runs in both `.gitea/workflows/` and `.github/workflows/`. See `docs/deployment.md` for systemd and Docker instructions. ## Gotchas - `maskarr_config.json` is tracked as an empty template; don't commit it populated with real tracker credentials/cookies. diff --git a/docs/deployment.md b/docs/deployment.md index ab26c0b..c1ceadd 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -80,7 +80,7 @@ docker run -d \ The GitHub Actions workflow `.github/workflows/docker-publish.yml` publishes the Docker image to **GitHub Container Registry** (`ghcr.io`) on each push to `main`/`master` or tag `v*.*.*`. -CI and versioning run on Gitea Actions (`.gitea/workflows/`). +CI and versioning run on Gitea Actions (`.gitea/workflows/` (CI also runs on GitHub)). ### Using published images