Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

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 -e .
- name: Lint with pycodestyle
run: |
pycodestyle tableauserverclient test samples
- name: Test with pytest
run: |
pytest test
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

13 changes: 8 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@
install_requires=[
'requests>=2.11,<3.0',
],
tests_require=[
'requests-mock>=1.0,<2.0',
'pytest',
'mock'
]
extras_require={
'test': [
'requests-mock>=1.0,<2.0',
'pytest',
'mock',
'pycodestyle'
]
}
)
2 changes: 1 addition & 1 deletion test/test_dataalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get(self):
self.assertEqual('6d13b0ca-043d-4d42-8c9d-3f3313ea3a00', all_alerts[0].workbook_id)
self.assertEqual('Safari stats', all_alerts[0].workbook_name)
self.assertEqual('5241e88d-d384-4fd7-9c2f-648b5247efc5', all_alerts[0].project_id)
self.assertEqual('Default', all_alerts[0].project_name)
self.assertEqual('Defaultt', all_alerts[0].project_name)

def test_get_by_id(self):
response_xml = read_xml_asset(GET_BY_ID_XML)
Expand Down