From 90845ddf1840ebb6ee15ffe846024ef411fb094c Mon Sep 17 00:00:00 2001 From: Stefano Agbodan Date: Tue, 3 Feb 2026 22:09:45 +0100 Subject: [PATCH] chore(ci): updated ci + package json --- .github/workflows/ci.yml | 14 ++++++++------ package.json | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70cf1b5..344d7ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: ["main"] + branches: ['main'] pull_request: jobs: @@ -23,8 +23,8 @@ jobs: - name: Setup Node 20 uses: actions/setup-node@v4 with: - node-version: "20" - cache: "pnpm" + node-version: '20' + cache: 'pnpm' - name: Show tool versions run: | @@ -59,7 +59,9 @@ jobs: - name: Setup Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: '3.11' + cache: 'pip' + cache-dependency-path: 'py/pyproject.toml' - name: Install Python deps (dev) working-directory: py @@ -67,6 +69,6 @@ jobs: python -m pip install --upgrade pip pip install -e ".[dev]" - # Matches your root script: "py:test": "cd py && python -m pytest" - name: Pytest - run: cd py && python -m pytest + working-directory: py + run: python -m pytest diff --git a/package.json b/package.json index a7eb3ce..c2c4d6b 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "scripts": { "build": "pnpm -r build", "test": "pnpm -r test && pnpm py:test", + "test:node": "pnpm -r test", + "test:py": "pnpm py:test", "lint": "pnpm -r lint", "format": "pnpm -r format", "typecheck": "pnpm -r typecheck",