Bump torch from 1.10.0 to 2.2.0 #163
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 | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Lint with Black | |
run: | | |
pip install black | |
black . --check -l 120 | |
- name: Test with unittest | |
run: | | |
python -m unittest discover tests -v | |
- name: Check types with mypy | |
run: | | |
pip install mypy | |
mypy . --ignore-missing-imports |