Skip to content

trl not tri

trl not tri #36

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python library lingvo
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytype
pip install -r lingvo/requirements.txt
- name: Lint with flake8
run: |
flake8 publications/*/*/*.py
flake8 --indent-size 2 --max-line-length 80 lingvo
- name: Run tests
run: |
bash lingvo/run_tests.sh