-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move away from travis due to policy change
- Loading branch information
Showing
2 changed files
with
42 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test Face alignmnet | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
pytorch-version: [1.5.1, 1.6.0, 1.7.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 |
This file was deleted.
Oops, something went wrong.