-
Notifications
You must be signed in to change notification settings - Fork 730
Enable MacOS M1 CI unittests #4091
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,68 @@ | ||
# name: Unit-tests on Macos CPU | ||
name: Unit-tests on MacOS M1 CPU | ||
|
||
# on: | ||
# pull_request: | ||
# push: | ||
# branches: | ||
# - nightly | ||
# - main | ||
# - release/* | ||
# workflow_dispatch: | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- nightly | ||
- main | ||
- release/* | ||
workflow_dispatch: | ||
|
||
# env: | ||
# CHANNEL: "nightly" | ||
env: | ||
CHANNEL: "nightly" | ||
|
||
# jobs: | ||
# tests: | ||
# uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | ||
# with: | ||
# runner: macos-12 | ||
# repository: pytorch/audio | ||
# timeout: 180 | ||
# script: | | ||
# echo '::group::Setup Environment Variables' | ||
# # Mark Build Directory Safe | ||
# git config --global --add safe.directory /__w/audio/audio | ||
jobs: | ||
tests: | ||
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | ||
with: | ||
runner: macos-m1-stable | ||
repository: pytorch/audio | ||
timeout: 180 | ||
script: | | ||
echo '::group::Setup Environment Variables' | ||
# Mark Build Directory Safe | ||
git config --global --add safe.directory /__w/audio/audio | ||
|
||
# # Set up Environment Variables | ||
# export PYTHON_VERSION="3.9" | ||
# export CU_VERSION="" | ||
# export CUDATOOLKIT="" | ||
# export USE_OPENMP="0" | ||
# Set up Environment Variables | ||
export PYTHON_VERSION="3.10" | ||
export PIP_PROGRESS_BAR=off | ||
export CONDA_QUIET=1 | ||
export CU_VERSION="" | ||
export CUDATOOLKIT="" | ||
export USE_OPENMP="0" | ||
unset CUDA_VERSION | ||
|
||
# # Set CHANNEL | ||
# if [[(${GITHUB_EVENT_NAME} = 'pull_request' && (${GITHUB_BASE_REF} = 'release'*)) || (${GITHUB_REF} = 'refs/heads/release'*) ]]; then | ||
# export UPLOAD_CHANNEL=test | ||
# else | ||
# export UPLOAD_CHANNEL=nightly | ||
# fi | ||
# Set CHANNEL | ||
if [[(${GITHUB_EVENT_NAME} = 'pull_request' && (${GITHUB_BASE_REF} = 'release'*)) || (${GITHUB_REF} = 'refs/heads/release'*) ]]; then | ||
export UPLOAD_CHANNEL=test | ||
else | ||
export UPLOAD_CHANNEL=nightly | ||
fi | ||
|
||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_APPLY_CMVN_SLIDING=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_FBANK_FEATS=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_KALDI_PITCH_FEATS=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_MFCC_FEATS=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_SPECTROGRAM_FEATS=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CUDA=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_HW_ACCEL=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_QUANTIZATION=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_ON_PYTHON_310=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_MOD_sentencepiece=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_AUDIO_OUT_DEVICE=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_TEMPORARY_DISABLED=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_SOX_DECODER=true | ||
# export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_SOX_ENCODER=true | ||
# echo '::endgroup::' | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_APPLY_CMVN_SLIDING=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_FBANK_FEATS=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_KALDI_PITCH_FEATS=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_MFCC_FEATS=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CMD_COMPUTE_SPECTROGRAM_FEATS=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_CUDA=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_HW_ACCEL=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_QUANTIZATION=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_ON_PYTHON_310=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_MOD_sentencepiece=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_AUDIO_OUT_DEVICE=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_TEMPORARY_DISABLED=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_SOX_DECODER=true | ||
export TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_SOX_ENCODER=true | ||
echo '::endgroup::' | ||
|
||
# set -euxo pipefail | ||
set -euxo pipefail | ||
|
||
# echo '::group::Install PyTorch and Torchaudio' | ||
# ./.github/scripts/unittest-linux/install.sh | ||
# echo '::endgroup::' | ||
echo '::group::Install PyTorch and Torchaudio' | ||
./.github/scripts/unittest-linux/install.sh | ||
echo '::endgroup::' | ||
|
||
# echo '::group::Run Tests' | ||
# ./.github/scripts/unittest-linux/run_test.sh | ||
# echo '::endgroup::' | ||
echo '::group::Run Tests' | ||
export PYTEST_K_EXTRA="and not librosa" | ||
./.github/scripts/unittest-linux/run_test.sh | ||
echo '::endgroup::' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# name: Unittests on Windows CPU | ||
name: Unittests on Windows CPU | ||
|
||
on: | ||
pull_request: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.