Skip to content

Commit

Permalink
Github Actions workflow CI for horovod on CPU (#1377)
Browse files Browse the repository at this point in the history
* 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
ramesht007 committed Oct 9, 2020
1 parent ba1f67b commit a8a9c7c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/hvd-tests.yml
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

0 comments on commit a8a9c7c

Please sign in to comment.