Skip to content

Updated API for v1.0.0 #173

Updated API for v1.0.0

Updated API for v1.0.0 #173

Workflow file for this run

name: build and test
on:
workflow_dispatch:
push:
branches: [master, dev, build-workflow]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
# No gpu workflow yet!: https://github.com/apache/singa/issues/802
steps:
# TODO: should not run all combinations of python version and torch version.
# torch 1.13.1 does not support python 3.11.
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}