From b18024f7d34ab0a42779fab075d1a1f6aa3d8950 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Wed, 1 Apr 2026 22:51:46 +0200 Subject: [PATCH] adding ci --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..ddfe299 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + pull_request: + +jobs: + python: + name: Python tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v4 + - run: uv sync + - run: uv run pytest + + frontend: + name: Frontend build + runs-on: ubuntu-latest + defaults: + run: + working-directory: site + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: site/package-lock.json + - run: npm ci + - name: Create stub data dir for SSG build + run: | + mkdir -p /tmp/bincio_ci/activities + echo '{"bas_version":"1.0","owner":{"handle":"ci","display_name":"CI"},"generated_at":"2024-01-01T00:00:00Z","shards":[],"activities":[]}' \ + > /tmp/bincio_ci/index.json + - run: npm run build + env: + BINCIO_DATA_DIR: /tmp/bincio_ci