Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/Lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 9 additions & 5 deletions system_tests/lewis_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import contextlib
import os
import subprocess
import sys
import time
from pathlib import Path

Expand All @@ -18,8 +19,7 @@
@contextlib.contextmanager
def julabo_simulation():
command = [
"uv",
"run",
sys.executable,
str(LEWIS_PATH),
"julabo",
"-p",
Expand All @@ -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):
Expand All @@ -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()
)


Expand All @@ -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)

Expand Down