8000 Merge pull request #199 from tableau/jacalata-ci · DocAdam/document-api-python@5e3ec34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e3ec34

Browse files
authored
Merge pull request tableau#199 from tableau/jacalata-ci
Cr 10000 eate python-package.yml
2 parents 7bde194 + d9c08f5 commit 5e3ec34

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

python-package.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
paths-ignore:
9+
- 'docs/**'
10+
pull_request:
11+
branches: *
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: [3.7, 3.8, 3.9]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install pycodestyle
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
- name: Lint with pycodestyle
34+
run: |
35+
pycodestyle tableaudocumentapi test samples
36+
- name: Test
37+
run: |
38+
python setup.py test

0 commit comments

Comments
 (0)
0