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

Commit

Permalink
[AP-XXXX] Bump 1.1.0 and github workflow to auto publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti authored Jan 28, 2020
1 parent a202993 commit 2bbc5cb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package to PyPi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

setup(name="pipelinewise-target-s3-csv",
version="1.0.1",
version="1.1.0",
description="Singer.io target for writing CSV files and upload to S3 - PipelineWise compatible",
author="TransferWise",
url='https://github.com/transferwise/pipelinewise-target-s3-csv',
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_target_s3_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ def test_loading_csv_files_with_gzip_compression(self):
"""Loading multiple tables from the same input tap with gzip compression"""
tap_lines = test_utils.get_test_tap_lines('messages-with-three-streams.json')

# Turning off compression
# Turning on gzip compression
self.config['compression'] = 'gzip'
self.persist_messages(tap_lines)
self.assert_three_streams_are_in_s3_bucket(compression='gzip')

def test_loading_csv_files_with_gzip_compression(self):
"""Loading multiple tables from the same input tap with gzip compression"""
def test_loading_csv_files_with_invalid_compression(self):
"""Loading multiple tables from the same input tap with invalid compression"""
tap_lines = test_utils.get_test_tap_lines('messages-with-three-streams.json')

# Turning off compression
# Turning on a not supported compression method
self.config['compression'] = 'INVALID_COMPRESSION_METHOD'

# Invalid compression method should raise exception
Expand Down

0 comments on commit 2bbc5cb

Please sign in to comment.