From 94379537379c5a9cd0459d693e32e2bd23f7cb31 Mon Sep 17 00:00:00 2001 From: shaia Date: Fri, 6 Mar 2026 08:49:45 +0200 Subject: [PATCH 1/4] ci: Add GitHub Actions workflow to run tests and linting --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..1345cfb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install pytest ruff + + - name: Lint + run: ruff check . + + - name: Check formatting + run: ruff format --check . + + - name: Run tests + run: pytest tests/ -v From e799b8454d90270faa39c604d19051f48aac0007 Mon Sep 17 00:00:00 2001 From: shaia Date: Fri, 6 Mar 2026 08:51:55 +0200 Subject: [PATCH 2/4] ci: Test only on Python 3.9 and 3.12 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1345cfb..8033721 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.12"] steps: - uses: actions/checkout@v4 From 5d3c1f37843e4cfb6fc9be59261c7d23d8f723d6 Mon Sep 17 00:00:00 2001 From: shaia Date: Fri, 6 Mar 2026 08:53:11 +0200 Subject: [PATCH 3/4] ci: Remove format check since pre-commit handles it locally --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8033721..635c5ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,5 @@ jobs: - name: Lint run: ruff check . - - name: Check formatting - run: ruff format --check . - - name: Run tests run: pytest tests/ -v From 3253790540af5a53eec1dee3662f340cbb024882 Mon Sep 17 00:00:00 2001 From: shaia Date: Fri, 6 Mar 2026 09:00:48 +0200 Subject: [PATCH 4/4] ci: Test only on Python 3.9 --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 635c5ad..3741fde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,17 +9,14 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.9", "3.12"] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: "3.9" - name: Install dependencies run: |