-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added basic CI/CD workflows * removed unsupported python version 3.10 * deleted uneeded gitlab ci file * linted code, added tox * updated the tox testing/linting code * added isort dev dep Co-authored-by: Josh Lloyd <[email protected]> Co-authored-by: Josh Lloyd <[email protected]>
- Loading branch information
1 parent
4b98c89
commit 67d4d62
Showing
21 changed files
with
705 additions
and
277 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI (Testing/Linting) Workflow | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9"] | ||
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 pipx | ||
python -m pipx ensurepath | ||
python -m pipx install poetry | ||
# Force update PATH to include pipx executables | ||
export PATH=$PATH:/root/.local/bin | ||
# Create virtual environment and install dependencies | ||
poetry env use python | ||
poetry install --no-root | ||
- name: Test and lint the code | ||
run: | | ||
poetry run tox -e py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish New Releases to Pypi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install pipx | ||
python -m pipx ensurepath | ||
python -m pipx install poetry | ||
# Force update PATH to include pipx executables | ||
export PATH=$PATH:/root/.local/bin | ||
# Create virtual environment and install dependencies | ||
poetry env use python | ||
poetry install --no-root | ||
- name: Build package | ||
run: poetry build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN_PROD }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[mypy] | ||
python_version = 3.8 | ||
warn_unused_configs = True | ||
warn_return_any = True | ||
exclude = tests | ||
|
||
[mypy-singer.*] | ||
# Library 'pipelinewise-singer-tools' does not have type hints: | ||
# - https://github.com/transferwise/pipelinewise-singer-python/issues/25 | ||
ignore_missing_imports = True | ||
|
||
[mypy-backoff.*] | ||
# Frozen due to pipelinewise-singer-tools dependency | ||
ignore_missing_imports = True | ||
|
||
[mypy-bcrypt.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-joblib.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-pyarrow.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-pandas.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-jsonschema.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-jsonpath_ng.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-genson.*] | ||
ignore_missing_imports = True |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Package initialization.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.