|
| 1 | +name: Continuous Integration |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +jobs: |
| 6 | + ubuntu-unit-test: |
| 7 | + |
| 8 | + runs-on: ubuntu-18.04 |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + mpi-vendor: ['openmpi', 'mpich'] |
| 12 | + python-version: [3.7, 3.8] |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v2 |
| 16 | + - name: Set up Python ${{ matrix.python-version }} |
| 17 | + uses: actions/setup-python@v2 |
| 18 | + with: |
| 19 | + python-version: ${{ matrix.python-version }} |
| 20 | + - name: Install MPI |
| 21 | + run: ./scripts/install_mpi.sh ${{ matrix.mpi-vendor }} |
| 22 | + - name: Install BlueFog |
| 23 | + run: | |
| 24 | + python -m pip install --upgrade pip |
| 25 | + python -m pip install -r requirements.txt |
| 26 | + git submodule update --init --recursive |
| 27 | + python -m pip install -e . |
| 28 | + - name: Unit Test |
| 29 | + run: make test_torch_basic test_torch_ops |
| 30 | + |
| 31 | + macos-unit-test: |
| 32 | + |
| 33 | + runs-on: macos-10.15 |
| 34 | + strategy: |
| 35 | + matrix: |
| 36 | + mpi-vendor: ['openmpi', 'mpich'] |
| 37 | + python-version: [3.7, 3.8] |
| 38 | + |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v2 |
| 41 | + - name: Set up Python ${{ matrix.python-version }} |
| 42 | + uses: actions/setup-python@v2 |
| 43 | + with: |
| 44 | + python-version: ${{ matrix.python-version }} |
| 45 | + - name: Install MPI |
| 46 | + run: ./scripts/install_mpi.sh ${{ matrix.mpi-vendor }} |
| 47 | + - name: Install BlueFog |
| 48 | + run: | |
| 49 | + python -m pip install --upgrade pip |
| 50 | + python -m pip install -r requirements.txt |
| 51 | + git submodule update --init --recursive |
| 52 | + python -m pip install -e . |
| 53 | + - name: Unit Test |
| 54 | + run: NUM_PROC=2 make test_torch_basic test_torch_ops test_torch_win_ops |
| 55 | + |
0 commit comments