From bede0fa7b6ab9aa36da210c0567d2b727c105801 Mon Sep 17 00:00:00 2001 From: Jac Date: Tue, 1 Jun 2021 16:36:52 -0700 Subject: [PATCH 1/2] Create python-package.yml Setup Github Actions to eventually replace travis-ci --- python-package.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 python-package.yml diff --git a/python-package.yml b/python-package.yml new file mode 100644 index 0000000..587ad85 --- /dev/null +++ b/python-package.yml @@ -0,0 +1,37 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7, 3.8, 3.9] + + 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 + python -m pip install pycodestyle + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with pycodestyle + run: | + pycodestyle tableaudocumentapi test samples + - name: Test + run: | + python setup.py test From d9c08f5000381c5a740eac0b50c4502e9c75b44f Mon Sep 17 00:00:00 2001 From: Jac Date: Tue, 1 Jun 2021 16:39:33 -0700 Subject: [PATCH 2/2] Apply actions to all branches --- python-package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-package.yml b/python-package.yml index 587ad85..21a11b8 100644 --- a/python-package.yml +++ b/python-package.yml @@ -5,9 +5,10 @@ name: Python package on: push: - branches: [ master ] + paths-ignore: + - 'docs/**' pull_request: - branches: [ master ] + branches: * jobs: build: