diff --git a/.github/workflows/Lint-and-test.yml b/.github/workflows/Lint-and-test.yml index 54c8b335..e6dbddf1 100644 --- a/.github/workflows/Lint-and-test.yml +++ b/.github/workflows/Lint-and-test.yml @@ -7,13 +7,14 @@ jobs: compare-branch: origin/main python-ver: '3.13' tests: - runs-on: ubuntu-latest strategy: matrix: version: ['3.10','3.11', '3.12', '3.13', '3.14'] + os: ["ubuntu-latest", "windows-latest"] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v6 + - uses: actions/checkout@v5 + - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.version }} - name: install requirements diff --git a/system_tests/lewis_tests.py b/system_tests/lewis_tests.py index 84594201..dbaebf41 100644 --- a/system_tests/lewis_tests.py +++ b/system_tests/lewis_tests.py @@ -1,6 +1,7 @@ import contextlib import os import subprocess +import sys import time from pathlib import Path @@ -18,8 +19,7 @@ @contextlib.contextmanager def julabo_simulation(): command = [ - "uv", - "run", + sys.executable, str(LEWIS_PATH), "julabo", "-p", @@ -34,7 +34,9 @@ def julabo_simulation(): def run_control_command(mode, command, value): - subprocess.check_output(["uv", "run", str(LEWIS_CONTROL_PATH), mode, command, value], env=os.environ).decode() + subprocess.check_output( + [sys.executable, str(LEWIS_CONTROL_PATH), mode, command, value] + ).decode() def santise_whitespace(input_str): @@ -43,7 +45,7 @@ def santise_whitespace(input_str): def query_device_status(): return santise_whitespace( - subprocess.check_output(["uv", "run", str(LEWIS_CONTROL_PATH), "device"], env=os.environ).decode() + subprocess.check_output([sys.executable, str(LEWIS_CONTROL_PATH), "device"]).decode() ) @@ -57,7 +59,9 @@ def test_list_available_devices(self): When: running Lewis without parameters Then: returns a list of possible simulations """ - result = santise_whitespace(subprocess.check_output(["uv", "run", str(LEWIS_PATH)]).decode()) + result = santise_whitespace( + subprocess.check_output([sys.executable, str(LEWIS_PATH)]).decode() + ) verify(result, self.reporter)