Skip to content

Unify unit test workflow across OSes #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2024
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
64 changes: 0 additions & 64 deletions .github/workflows/unittest-windows.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit test and code coverage (macOS)
name: Unit test and code coverage

on:
push:
Expand All @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["macos-latest"]
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}
Expand All @@ -30,20 +30,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Print system info
run: sw_vers; python --version; arch
- name: Install build tools
run: |
python -m pip install --upgrade "pip<24.1" "setuptools==73.0.1"
python -m pip install coverage coveralls
- name: Install ICU
- name: Install ICU (macOS)
if: startsWith(matrix.os, 'macos-')
run: |
brew install icu4c
PKG_CONFIG_PATH=$(brew --prefix)/opt/icu4c/lib/pkgconfig
echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}" >> "${GITHUB_ENV}"
ICU_VER=$(pkg-config --modversion icu-i18n)
echo "ICU_VER=${ICU_VER}"
echo "ICU_VER=${ICU_VER}" >> "${GITHUB_ENV}"
- name: Install ICU (Windows)
if: startsWith(matrix.os, 'windows-')
run: |
python -m pip install "https://github.com/cgohlke/pyicu-build/releases/download/v2.14/PyICU-2.14-cp310-cp310-win_amd64.whl"
# if needed, get pip wheel link from https://github.com/cgohlke/pyicu-build/releases
- name: Install PyTorch
run: pip install torch
# if needed, get pip wheel link from http://download.pytorch.org/whl/torch/
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/unitttest-ubuntu.yml

This file was deleted.