Skip to content

Commit d24c255

Browse files
committed
CI: Skip Macos and Windows in CI tests.
The test framework uses the micropython unix port which is only supported on linux.
1 parent 4d57cf6 commit d24c255

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: Tests
2424
uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@main
2525
with:
26-
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
26+
os: '["ubuntu-latest"]' # CI tests only run on linux
2727
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]'
2828

2929
publish-test:

.github/workflows/ci-test-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: CI tests (full)
1818
uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@main
1919
with:
20-
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
20+
os: '["ubuntu-latest"]' # CI tests only run on linux
2121
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]'
2222

2323
publish-test:

.github/workflows/ci-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
name: CI tests
1515
uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@v1
1616
with: # A short test matrix for fast testing of commits
17-
os: '["ubuntu-latest"]'
17+
os: '["ubuntu-latest"]' # CI tests only run on linux
1818
python-version: '["3.9", "3.13"]'

tests/conftest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@
3535
osname = platform.system()
3636
if osname == "Linux":
3737
subprocess.run("sudo apt-get install socat".split(), check=True)
38-
elif osname == "Darwin":
39-
subprocess.run("brew install socat".split(), check=True)
40-
elif osname == "Windows":
41-
raise RuntimeError("socat is not supported on Windows.")
38+
else:
39+
raise RuntimeError(f"Micropython unix port not supported on {osname}.")
4240

4341

4442
def pytest_addoption(parser: argparse.Namespace) -> None:

0 commit comments

Comments
 (0)