Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
fix torch version.
  • Loading branch information
hunterhector committed Mar 25, 2021
1 parent 66a76c6 commit 07cc880
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip
pip install --progress-bar off torch==${{ matrix.python-version }}
pip install --progress-bar off torch==${{ matrix.torch-version }}
pip install --progress-bar off .[extras]
if [[ ${{ matrix.python-version }} == "1.4.0" ]]; then pip install pylint==2.4.4 flake8==3.7.9; fi
if [[ ${{ matrix.torch-version }} == "1.4.0" ]]; then pip install pylint==2.4.4 flake8==3.7.9; fi
if [[ ${{ matrix.python-version }} != "1.0.1" ]]; then pip install mypy==0.761; fi
pip install pytest
pip install --progress-bar off coverage codecov
- name: Linting
run: |
if [[ ${{ matrix.python-version }} == "1.4.0" ]]; then pylint texar/ examples/; fi
if [[ ${{ matrix.python-version }} == "1.4.0" ]]; then flake8 texar/ examples/; fi
if [[ ${{ matrix.python-version }} != "1.0.1" ]]; then mypy .; fi
if [[ ${{ matrix.python-version }} != "1.0.1" ]]; then _rc=0; for dir in `echo examples/**/`; do mypy $dir || _rc=$?; done && [[ $_rc == 0 ]]; fi
if [[ ${{ matrix.torch-version }} == "1.4.0" ]]; then pylint texar/ examples/; fi
if [[ ${{ matrix.torch-version }} == "1.4.0" ]]; then flake8 texar/ examples/; fi
if [[ ${{ matrix.torch-version }} != "1.0.1" ]]; then mypy .; fi
if [[ ${{ matrix.torch-version }} != "1.0.1" ]]; then _rc=0; for dir in `echo examples/**/`; do mypy $dir || _rc=$?; done && [[ $_rc == 0 ]]; fi
- name: Test with pytest and run coverage
run: |
coverage run -m pytest
Expand Down

0 comments on commit 07cc880

Please sign in to comment.