Skip to content

Commit

Permalink
Merge pull request google#101 from google/test_workflow
Browse files Browse the repository at this point in the history
Enable CI on this Repo with new Github Actions function.
  • Loading branch information
LeegleechN authored Aug 21, 2019
2 parents 6006a3b + 2da39b2 commit 59a66a4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tensorflow==1.14.0 six Pillow
- name: Yapf Check
run: |
pip install yapf
yapf --diff --style="{based_on_style: google, indent_width:2}" *.py
- name: Test with nosetests
run: |
pip install -U nose
nosetests

0 comments on commit 59a66a4

Please sign in to comment.