add_only_build_VTuber #19
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: pytest-environment-setup | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# ref: https://github.com/marketplace/actions/setup-miniconda | |
Ubuntu: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: l2d-vtb | |
environment-file: environment.yml | |
python-version: "3.8" | |
- run: | | |
conda env list | |
conda activate l2d-vtb | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
conda install -c conda-forge dlib | |
conda install scipy | |
conda install pytorch==1.10.2 torchvision==0.11.3 torchaudio==0.10.2 cudatoolkit=10.2 -c pytorch | |
- name: Run tests | |
run: | | |
pytest tests/test_linux.py | |
MacOS: | |
runs-on: macOS-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: l2d-vtb | |
environment-file: environment.yml | |
python-version: "3.8" | |
- run: | | |
conda env list | |
conda activate l2d-vtb | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
conda install -c conda-forge dlib | |
conda install scipy | |
conda install pytorch torchvision torchaudio -c pytorch-nightly | |
- name: Run tests | |
run: | | |
pytest tests/test_mac.py | |
Windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: l2d-vtb | |
environment-file: environment.yml | |
python-version: "3.8" | |
- run: | | |
conda env list | |
conda activate l2d-vtb | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
conda install -c conda-forge dlib | |
conda install scipy | |
pip install torch==1.10.2+cu102 torchvision==0.11.3+cu102 torchaudio==0.10.2+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html | |
- name: Run tests | |
run: | | |
pytest tests/test_win.py |