build(deps): update mmcv requirement from <=2.1.0 to <=2.2.0 in /requirements #140
Workflow file for this run
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: functional-test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'configs/**' | |
- 'edgelab/**' | |
- 'requirements/**' | |
- 'scripts/**' | |
- 'tools/**' | |
- 'environment.yml' | |
- 'environment_cuda.yml' | |
- 'requirements.txt' | |
- 'requirements_cuda.txt' | |
- 'setup.py' | |
- '.github/workflows/functional-test.yml' | |
pull_request: | |
branches: | |
- dev | |
paths: | |
- 'configs/**' | |
- 'edgelab/**' | |
- 'requirements/**' | |
- 'scripts/**' | |
- 'tools/**' | |
- 'environment.yml' | |
- 'environment_cuda.yml' | |
- 'requirements.txt' | |
- 'requirements_cuda.txt' | |
- 'setup.py' | |
- '.github/workflows/functional-test.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
partial-test: | |
name: functional test for (${{ matrix.task }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- '3.8' | |
task: | |
- classification | |
- detection | |
- pose | |
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 | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
python -m pip install torch==2.0.0+cpu torchvision==0.15.1+cpu torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu | |
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 | |
- name: fetch datasets (${{ matrix.task }}) | |
run: | | |
bash scripts/test_functional.sh ${{ matrix.task }} fetch | |
- name: train models (${{ matrix.task }}) | |
run: | | |
bash scripts/test_functional.sh ${{ matrix.task }} train | |
- name: export models (${{ matrix.task }}) | |
run: | | |
bash scripts/test_functional.sh ${{ matrix.task }} export | |
- name: inference (${{ matrix.task }}) | |
run: | | |
bash scripts/test_functional.sh ${{ matrix.task }} inference |