Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Create python-package.yml (#1)
Browse files Browse the repository at this point in the history
* Create python-package.yml

* added github action

* added github action

* added github action

* added github action

* added github action

* added github action

* added github action
  • Loading branch information
ismailsimsek authored Jul 16, 2020
1 parent dd5c022 commit ec8cb95
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [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: Build & Install
run: |
bash deploy.sh
- name: Test with Unittest
run: |
python3 -m coverage run --source=./tests/ -m unittest discover -s tests/
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
venv
dist
*.egg-info
temp

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations/Unittests_in_tests_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/runConfigurations/deploy_sh.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ disable=
no-self-use,
too-many-locals,
no-else-raise,
no-else-return
no-else-return,
too-many-public-methods


dummy-variables-rgx=_|pagination_item
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Distribute tableau reports using workbook tags. using any of csv, pdf, pgn formats
Interact with tableu server, Download tableu content, triger datasource/extract refresh task
Distribute Tableu reports using workbook tags. Using any of csv, pdf, pgn export formats
Interact with Tableu server, Download tableu content, triger datasource/extract refresh task

# Installation
```
Expand All @@ -14,11 +14,11 @@ Tableau class to interact with tableau server and server content
- download_all_datasources
- download_all_workbooks
- export_all_datasource_fields_to_csv
- refresh_extracts
- export_all_workbook_fields_to_csv
- download_workbook_pdf
- download_workbook_png
- download_workbook_csv
- refresh_extracts

# PyTableauReportScheduler
tableau class to emailing reports as pdf using workbook tags
Expand Down
8 changes: 4 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# build and test
python3 --version
python3 -m pylint pytableau setup.py
python3 -m pip install coverage pylint pytest
python3 -m compileall -f pytableau setup.py
python3 -m coverage report -m ./pytableau/*.py
python3 -m coverage run --source=./tests/ -m unittest discover -s tests/
python3 setup.py -q install --user --force
python3 -m coverage report -m ./pytableau/*.py setup.py
python3 setup.py -q install --user --force
python3 -m pylint pytableau setup.py
5 changes: 5 additions & 0 deletions pytableau.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="CheckStyle-IDEA-Module">
<option name="configuration">
<map />
</option>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
download_url='https://github.com/memiiso/pytableau/archive/master.zip',
include_package_data=True,
test_suite='tests',
install_requires=['tableaudocumentapi==0.6', 'tableauserverclient==0.12', 'PyPDF3==1.0.1',
install_requires=['pandas', 'tableaudocumentapi==0.6', 'tableauserverclient==0.12', 'PyPDF3==1.0.1',
'Pillow==7.2.0', "openpyxl==3.0.4"],
python_requires='>=3',
)
4 changes: 3 additions & 1 deletion tests/test___init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@


class TestPyTableau(TestCase):
pass

def test_empty(self):
pass

0 comments on commit ec8cb95

Please sign in to comment.