diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20c6fa5..d7cfaa4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10"] - os: ["ubuntu-latest", "windows-latest"] + os: ["ubuntu-latest", "windows-latest", "macos-latest"] runs-on: ${{ matrix.os }} diff --git a/tests/run_single_test.py b/tests/run_single_test.py index 60ea9d5..1e3ed08 100644 --- a/tests/run_single_test.py +++ b/tests/run_single_test.py @@ -1,6 +1,7 @@ from importlib import import_module from os import sep, remove from os.path import join, exists +from pathlib import Path from shutil import copyfile, move from inspect import getmembers, isclass from typing import Tuple @@ -46,8 +47,8 @@ def test_runner(directory_pair: Tuple[str, str], capsys): ) # instrument - program_file = join(abs_dir, "program.py") - orig_program_file = join(abs_dir, "program.py.orig") + program_file = str(Path(abs_dir) / "program.py") + orig_program_file = str(Path(abs_dir) / "program.py.orig") # make sure to instrument the uninstrumented version run_as_file = False with open(program_file, "r") as file: