Skip to content

Commit

Permalink
Added macos and changed test runner for test
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Nov 9, 2023
1 parent 61e0887 commit a09d160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
5 changes: 3 additions & 2 deletions tests/run_single_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a09d160

Please sign in to comment.