fix: restrict pytorch version below 2.0.1 #218
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: smoke-test | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
paths: | |
- 'requirements/**' | |
- 'scripts/**' | |
- 'environment.yml' | |
- 'environment_cuda.yml' | |
- 'requirements.txt' | |
- 'requirements_cuda.txt' | |
- 'setup.py' | |
- '.github/workflows/smoke-test.yml' | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
manual-installation: | |
name: manual installation test for (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: pip install deps | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
python -m pip install -r requirements/pytorch_cpu.txt | |
python -m pip install -r requirements/base.txt | |
python -m pip install -r requirements/inference.txt | |
python -m pip install -r requirements/export.txt | |
python -m mim install -r requirements/mmlab.txt | |
python -m mim install -e . | |
python --version | |
python -m pip --version | |
python -m pip list | |
conda-installation: | |
name: conda installation test for (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: conda install deps (CPU, only base) | |
run: | | |
conda env create -n edgelab -f environment.yml | |
- name: conda install deps (CUDA, only base) | |
run: | | |
conda env create -n edgelab_cuda -f environment_cuda.yml | |
auto-installation: | |
name: auto installation test for (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: setup deps (shell) | |
run: | | |
bash scripts/setup_linux.sh |