-
-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github Actions workflow CI for horovod on CPU (#1377)
* Initial commit * Update hvd-tests.yml * Update hvd-tests.yml * Update hvd-tests.yml * trigger GitHub actions * removed examples * trigger GitHub actions
- Loading branch information
1 parent
ba1f67b
commit a8a9c7c
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Run Horovod tests | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
horovod-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
pytorch-channel: [pytorch] | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Miniconda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
miniconda-version: "latest" | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
#install other dependencies | ||
conda install pytorch torchvision cpuonly -c ${{ matrix.pytorch-channel }} | ||
pip install -r requirements-dev.txt | ||
# Fixes #1153 | ||
pip install --upgrade scipy==1.4.1 | ||
pip install horovod | ||
python setup.py install | ||
- name: Run Tests | ||
shell: bash -l {0} | ||
run: | | ||
SKIP_DISTRIB_TESTS=${{ matrix.skip-distrib-tests }} CI_PYTHON_VERSION="${{ matrix.python-version }}" sh tests/run_cpu_tests.sh | ||