Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name: Publish to PyPi
on:
workflow_dispatch:
push:
branches:
- master
tags:
- 'v*.*.*'

jobs:
build-n-publish:
Expand All @@ -19,12 +19,13 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.7
- name: Build dist files
run: |
python -m pip install --upgrade pip
pip install -e .[test]
python setup.py sdist --formats=gztar
python setup.py sdist --formats=gztar bdist_wheel
git describe --tag --dirty --always
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
python -m pip install --upgrade pip
pip install -e .[test]

- name: Format with black
run: |
black --check --line-length 120 tableauserverclient samples test

- name: Test with pytest
if: always()
run: |
Expand Down
3 changes: 0 additions & 3 deletions tableauserverclient/models/project_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
from typing import List, Optional


from typing import List, Optional, TYPE_CHECKING


class ProjectItem(object):
class ContentPermissions:
LockedToProject: str = "LockedToProject"
Expand Down