diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index b95f0bd..949815d 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -12,11 +12,12 @@ on: jobs: unit_tests: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: python-version: ["3.10", "3.11", "3.12", "3.13"] + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -34,4 +35,4 @@ jobs: run: poetry install - name: Run tests - run: sh ci/run_tests.sh + run: poetry run pytest tests diff --git a/ci/run_tests.sh b/ci/run_tests.sh deleted file mode 100644 index 036789c..0000000 --- a/ci/run_tests.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -poetry run pytest tests diff --git a/git_hooks/pre-push b/git_hooks/pre-push index f3a2dec..254e819 100755 --- a/git_hooks/pre-push +++ b/git_hooks/pre-push @@ -10,4 +10,4 @@ echo "[2/3] Running linter..." sh ./ci/run_linter.sh echo "[3/3] Running unit tests..." -sh ./ci/run_tests.sh \ No newline at end of file +poetry run pytest tests \ No newline at end of file