Files
glazier/.github/workflows/python_tests.yml
Dan Tsekhanskiy 294af6a936 Add Python Test GitHub Action
PiperOrigin-RevId: 334865290
2020-10-01 11:53:51 -07:00

26 lines
623 B
YAML

name: Python Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
python_tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test python
run: python -m testing.run_tests