support controlnet #444
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
name: Install and test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
MS_DEV_ENABLE_FALLBACK: 0 | |
jobs: | |
pytest: | |
strategy: | |
matrix: | |
os: ['windows-2019', 'ubuntu-20.04'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest | |
pip install -r requirements.txt | |
- name: Test with pytest | |
run: | | |
python setup.py install | |
python -c "import mindspore; print(mindspore.__version__)" | |
python -c "import tinyms; print(tinyms.__version__)" | |
pytest |