Update GTA-Human README.md #956
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- 'README_CN.md' | |
- 'docs/**' | |
- 'docs_zh-CN/**' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'README_CN.md' | |
- 'docs/**' | |
- 'docs_zh-CN/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_cuda101: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.8] | |
torch: [1.9.0] | |
include: | |
- torch: 1.9.0 | |
torchvision: 0.10.0 | |
torchaudio: 0.9.0 | |
openpifpaf: 0.13.1 | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: mmhuman3d_env | |
python-version: ${{matrix.python-version}} | |
auto-activate-base: false | |
- name: Prepare test data | |
run: | | |
mkdir mmhuman3d_download | |
cd mmhuman3d_download | |
wget -O mmhuman3d.7z -q https://openmmlab-share.oss-cn-hangzhou.aliyuncs.com/mmhuman3d/mmhuman3d.7z | |
7za x mmhuman3d.7z | |
ls -l | |
cd .. | |
cp -r mmhuman3d_download/mmhuman3d/* ./ | |
rm -rf mmhuman3d_download | |
- name: Upgrade pip | |
run: pip install pip --upgrade | |
- name: Install ffmpeg | |
run: | | |
conda install ffmpeg | |
ffmpeg -version | |
- name: Install PyTorch | |
run: | | |
conda install pytorch==${{matrix.torch}} torchvision==${{matrix.torchvision}} torchaudio==${{matrix.torchaudio}} cudatoolkit=10.2 -c pytorch | |
- name: Install pytorch3d | |
run: | | |
conda install -c fvcore -c iopath -c conda-forge fvcore iopath -y | |
pip install "git+https://github.com/facebookresearch/pytorch3d.git" | |
- name: Install MMCV | |
run: | | |
pip install "mmcv-full>=1.3.17,<=1.5.3" -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html | |
python -c 'import mmcv; print(mmcv.__version__)' | |
- name: Install openpifpaf | |
run: pip install openpifpaf==${{matrix.openpifpaf}} | |
- name: Install other dependencies | |
run: pip install -r requirements.txt | |
- name: Build and install | |
run: rm -rf .eggs && pip install -e . | |
- name: Run unittests and generate coverage report | |
run: | | |
coverage run --source mmhuman3d -m pytest tests/ | |
coverage xml | |
coverage report -m | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
files: ./coverage.xml | |
flags: unittests | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: false |