Skip to content

smoke-test

smoke-test #488

Workflow file for this run

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
- windows-latest
python-version:
- '3.8'
- '3.9'
- '3.10'
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: pip install deps (CPU)
run: |
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install -r requirements/pytorch_cpu.txt
python3 -m pip install -r requirements/base.txt
python3 -m pip install -r requirements/inference.txt
python3 -m pip install -r requirements/export.txt
python3 -m mim install -r requirements/mmlab.txt
python3 -m mim install -e .
python3 --version
python3 -m pip --version
python3 -m pip list
- name: test train deps (CPU)
run: |
python3 tools/train.py --help
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@v4
- name: setup deps (shell)
run: |
bash scripts/setup_linux.sh
- name: test train (auto)
run: |
conda run -n sscma python3 tools/train.py --help