From 72df830016faecda6fcd728c4fbc42ca28f50159 Mon Sep 17 00:00:00 2001 From: Hanka Date: Wed, 24 Jun 2026 16:11:29 +0200 Subject: [PATCH 1/2] ci: add tests.yml workflow --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..02ca44c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Run Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest pytest-mock + + - name: Run tests + run: pytest Tests/ -v \ No newline at end of file From 3f695105eb1c6bd0b90984d7763f515536daf31f Mon Sep 17 00:00:00 2001 From: Hanka Date: Wed, 24 Jun 2026 16:13:54 +0200 Subject: [PATCH 2/2] ci: fix PYTHONPATH issue by running pytest via python -m --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02ca44c..8eee646 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,4 +24,4 @@ jobs: pip install pytest pytest-mock - name: Run tests - run: pytest Tests/ -v \ No newline at end of file + run: python -m pytest Tests/ -v \ No newline at end of file