From ec8cb951ebbf0104faebc44eb3780e8b6f2c5308 Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Thu, 16 Jul 2020 19:47:30 +0200 Subject: [PATCH] Create python-package.yml (#1) * 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 --- .github/workflows/python-package.yml | 28 +++++++++++++++++++ .gitignore | 5 ++++ .idea/misc.xml | 2 +- .../runConfigurations/Unittests_in_tests_.xml | 17 +++++++++++ .idea/runConfigurations/deploy_sh.xml | 5 +++- .pylintrc | 3 +- README.md | 6 ++-- deploy.sh | 8 +++--- pytableau.iml | 5 ++++ setup.py | 2 +- tests/test___init__.py | 4 ++- 11 files changed, 73 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/python-package.yml create mode 100644 .idea/runConfigurations/Unittests_in_tests_.xml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..e502498 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -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/ diff --git a/.gitignore b/.gitignore index 208ae2d..12892e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +venv +dist +*.egg-info +temp + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/.idea/misc.xml b/.idea/misc.xml index 109591a..4d2e2aa 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/runConfigurations/Unittests_in_tests_.xml b/.idea/runConfigurations/Unittests_in_tests_.xml new file mode 100644 index 0000000..cb9f778 --- /dev/null +++ b/.idea/runConfigurations/Unittests_in_tests_.xml @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/deploy_sh.xml b/.idea/runConfigurations/deploy_sh.xml index 9fe7878..d040797 100644 --- a/.idea/runConfigurations/deploy_sh.xml +++ b/.idea/runConfigurations/deploy_sh.xml @@ -1,8 +1,11 @@ -