Skip to content

Commit

Permalink
test on macos in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Nov 25, 2024
1 parent bdd55e3 commit 73d6118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ jobs:
name: Test (Python ${{ matrix.python_version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python_version: ['3.12', '3.13']
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down
2 changes: 2 additions & 0 deletions tests/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ fn clean_output(string: Vec<u8>) -> String {
let python_version_regex = Regex::new(r"\(Python 3.*").unwrap();
let windows_paths_regex = Regex::new(r"\(.*\\?:.*xc").unwrap();
let unix_paths_regex = Regex::new(r"/home.*xc").unwrap();
let mac_paths_regex = Regex::new(r"/Users.*xc").unwrap();
let windows_path_separator = Regex::new(r"\\").unwrap();

let string = time_regex.replace_all(&string, "<TIME>s");
let string = python_version_regex.replace(&string, "(Python 3)");
let string = windows_paths_regex.replace_all(&string, "(xc");
let string = unix_paths_regex.replace_all(&string, "xc");
let string = mac_paths_regex.replace_all(&string, "xc");
let string = windows_path_separator.replace_all(&string, "/");

string
Expand Down

0 comments on commit 73d6118

Please sign in to comment.