Fix #292 ans #362 #40
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: Test Face alignmnet | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
pytorch-version: [1.7.1, 1.11.0, 1.13.1, nightly] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add conda to system path | |
run: | | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
conda create -q -n test-environment python=${{ matrix.python-version }} | |
source activate test-environment | |
if [[ "${{ matrix.pytorch-version }}" == "nightly" ]]; then | |
conda install pytorch cpuonly -c pytorch-nightly | |
else | |
conda install pytorch==${{ matrix.pytorch-version }} cpuonly -c pytorch | |
fi | |
conda install flake8 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
python setup.py install | |
- name: Test with pytest | |
run: | | |
source activate test-environment | |
conda install pytest | |
pytest test/ | |
- name : Lint with flake8 | |
run: | | |
source activate test-environment | |
flake8 . --exit-zero |