From 43aefaad388796821b077ac53d1f4afbea209282 Mon Sep 17 00:00:00 2001 From: Jb DOYON Date: Thu, 4 Dec 2025 02:24:47 +0000 Subject: [PATCH 1/3] Add CI steps via Github actions --- .github/workflows/ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 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..7041ab8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Set up uv + python version + uses: astral-sh/setup-uv@v7.1.4 + with: + python-version: 3.13 + - name: Install dependencies + run: make install + # Store the result of the install step (e.g., venv, build artifacts) + - name: Upload install artifact + uses: actions/upload-artifact@v4 + with: + name: build-env + path: | + . # adjust to only include what your make install produces + retention-days: 1 + + lint: + runs-on: ubuntu-latest + name: Lint + steps: + - uses: actions/checkout@v4 + - uses: pre-commit/action@v3.0.1 + + test: + runs-on: ubuntu-latest + needs: install + name: Test + steps: + - uses: actions/checkout@v4 + - name: Download build environment + uses: actions/download-artifact@v4 + with: + name: build-env + - name: Run tests + run: make test + + docs: + runs-on: ubuntu-latest + needs: install + name: Docs + steps: + - uses: actions/checkout@v4 + - name: Download build environment + uses: actions/download-artifact@v4 + with: + name: build-env + - name: Run tests + run: make docs From 9442a75123269e284ded7649c65a1612534b7a1b Mon Sep 17 00:00:00 2001 From: Jb DOYON Date: Thu, 4 Dec 2025 02:36:28 +0000 Subject: [PATCH 2/3] Fix missing uv sync steps --- .github/workflows/ci.yml | 44 +++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7041ab8..ff1cc21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,13 @@ on: branches: [ "main" ] jobs: + lint: + runs-on: ubuntu-latest + name: Lint + steps: + - uses: actions/checkout@v5 + - uses: pre-commit/action@v3.0.1 + install: runs-on: ubuntu-latest steps: @@ -18,34 +25,18 @@ jobs: uses: astral-sh/setup-uv@v7.1.4 with: python-version: 3.13 + enable-cache: true - name: Install dependencies run: make install - # Store the result of the install step (e.g., venv, build artifacts) - - name: Upload install artifact - uses: actions/upload-artifact@v4 - with: - name: build-env - path: | - . # adjust to only include what your make install produces - retention-days: 1 - - lint: - runs-on: ubuntu-latest - name: Lint - steps: - - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.1 - + test: runs-on: ubuntu-latest needs: install name: Test steps: - - uses: actions/checkout@v4 - - name: Download build environment - uses: actions/download-artifact@v4 - with: - name: build-env + - uses: actions/checkout@v5 + - name: Install dependencies + run: make install - name: Run tests run: make test @@ -54,10 +45,13 @@ jobs: needs: install name: Docs steps: - - uses: actions/checkout@v4 - - name: Download build environment - uses: actions/download-artifact@v4 + - uses: actions/checkout@v5 + - name: Set up uv + python version + uses: astral-sh/setup-uv@v7.1.4 with: - name: build-env + python-version: 3.13 + enable-cache: true + - name: Install dependencies + run: make install - name: Run tests run: make docs From 36647f1b1d3ebd917dd2159766fc77b2795f2b2f Mon Sep 17 00:00:00 2001 From: Jb DOYON Date: Thu, 4 Dec 2025 02:38:08 +0000 Subject: [PATCH 3/3] Fix missing uv in test CI step Fix formatting failing lint too --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff1cc21..333e0e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v5 - uses: pre-commit/action@v3.0.1 - + install: runs-on: ubuntu-latest steps: @@ -28,13 +28,18 @@ jobs: enable-cache: true - name: Install dependencies run: make install - + test: runs-on: ubuntu-latest needs: install name: Test steps: - uses: actions/checkout@v5 + - name: Set up uv + python version + uses: astral-sh/setup-uv@v7.1.4 + with: + python-version: 3.13 + enable-cache: true - name: Install dependencies run: make install - name: Run tests