From 4895b9574af2ade6c5efe6d1b42bf42bdd7f9489 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 2 Jul 2025 13:31:55 +0200 Subject: [PATCH 1/2] ci: workflow for py tests --- .github/workflows/test-python.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test-python.yml diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml new file mode 100644 index 0000000..07000c9 --- /dev/null +++ b/.github/workflows/test-python.yml @@ -0,0 +1,32 @@ +name: Run Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + with: + version: "latest" + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + + - name: Install dependencies + run: uv sync --extra dev + + - name: Run tests + run: uv run pytest tests/ -v From 90e1b6c4cccc96d7aedc119cb55744ab1e8dbc0d Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 2 Jul 2025 13:35:24 +0200 Subject: [PATCH 2/2] delete: matrix version test --- .github/workflows/test-python.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 07000c9..d937382 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -1,4 +1,4 @@ -name: Run Tests +name: Run Python Tests on: push: @@ -10,9 +10,6 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 @@ -22,8 +19,8 @@ jobs: with: version: "latest" - - name: Set up Python ${{ matrix.python-version }} - run: uv python install ${{ matrix.python-version }} + - name: Set up Python 3.12 + run: uv python install 3.12 - name: Install dependencies run: uv sync --extra dev