-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f69fd8
commit e9ee8bc
Showing
13 changed files
with
385 additions
and
1,585 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -33,3 +33,7 @@ updates: | |
- "edgarrmondragon" | ||
commit-message: | ||
prefix: "ci: " | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
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 |
---|---|---|
@@ -1,6 +1,2 @@ | ||
pip==23.3.1 | ||
nox==2023.4.22 | ||
nox-poetry==1.0.3 | ||
poetry==1.7.1 | ||
poetry-dynamic-versioning==1.1.1 | ||
poetry-plugin-export==1.6.0 | ||
pip==23.3.2 | ||
hatch==1.9.1 |
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 |
---|---|---|
@@ -1,46 +1,30 @@ | ||
name: Publish with Dynamic Versioning | ||
name: Build | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: startsWith(github.ref, 'refs/tags/') | ||
environment: publishing | ||
env: | ||
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
pipx inject poetry poetry-dynamic-versioning[plugin] | ||
poetry --version | ||
poetry self show plugins | ||
- name: Build | ||
run: poetry build | ||
|
||
name: Packages | ||
path: dist | ||
- name: Upload wheel to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
|
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 |
---|---|---|
@@ -1,58 +1,64 @@ | ||
### A CI workflow template that runs linting and python testing | ||
|
||
name: Test tap-bitso | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- tap_bitso/** | ||
- tests/** | ||
- pyproject.toml | ||
- .github/workflows/test.yml | ||
- .github/workflows/constraints.tx | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- tap_bitso/** | ||
- tests/** | ||
- pyproject.toml | ||
- .github/workflows/test.yml | ||
- .github/workflows/constraints.tx | ||
schedule: | ||
- cron: "0 10 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
NOXSESSION: tests-${{ matrix.python-version }} | ||
FORCE_COLOR: "1" | ||
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
script: ["test:integration"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- { script: "test:dependencies", python-version: "3.11" } | ||
- { script: "typing:check", python-version: "3.11" } | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
pipx inject poetry poetry-plugin-export | ||
pipx inject poetry poetry-dynamic-versioning | ||
poetry --version | ||
- name: Install Nox | ||
run: | | ||
pipx install nox | ||
pipx inject nox nox-poetry | ||
nox --version | ||
- name: Check Types | ||
- name: Install Hatch | ||
run: | | ||
nox -s mypy-${{ matrix.python-version }} | ||
pipx install hatch | ||
hatch --version | ||
- name: Run Tests | ||
- name: Run | ||
env: | ||
TAP_BITSO_KEY: ${{ secrets.TAP_BITSO_KEY }} | ||
TAP_BITSO_SECRET: ${{ secrets.TAP_BITSO_SECRET }} | ||
run: | | ||
nox -s tests-${{ matrix.python-version }} | ||
hatch run ${{ matrix.script }} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"plugin_type": "loaders", | ||
"name": "target-jsonl", | ||
"namespace": "target_jsonl", | ||
"variant": "andyh1203", | ||
"label": "JSON Lines (JSONL)", | ||
"docs": "https://hub.meltano.com/loaders/target-jsonl--andyh1203", | ||
"repo": "https://github.com/andyh1203/target-jsonl", | ||
"pip_url": "target-jsonl", | ||
"description": "JSONL loader", | ||
"logo_url": "https://hub.meltano.com/assets/logos/loaders/jsonl.png", | ||
"settings": [ | ||
{ | ||
"name": "destination_path", | ||
"kind": "string", | ||
"value": "output", | ||
"label": "Destination Path", | ||
"description": "Sets the destination path the JSONL files are written to, relative\nto the project root.\n\nThe directory needs to exist already, it will not be created\nautomatically.\n\nTo write JSONL files to the project root, set an empty string (`\"\"`).\n" | ||
}, | ||
{ | ||
"name": "do_timestamp_file", | ||
"kind": "boolean", | ||
"value": false, | ||
"label": "Include Timestamp in File Names", | ||
"description": "Specifies if the files should get timestamped.\n\nBy default, the resulting file will not have a timestamp in the file name (i.e. `exchange_rate.jsonl`).\n\nIf this option gets set to `true`, the resulting file will have a timestamp associated with it (i.e. `exchange_rate-{timestamp}.jsonl`).\n" | ||
}, | ||
{ | ||
"name": "custom_name", | ||
"kind": "string", | ||
"label": "Custom File Name Override", | ||
"description": "Specifies a custom name for the filename, instead of the stream name.\n\nThe file name will be `{custom_name}-{timestamp}.jsonl`, if `do_timestamp_file` is `true`.\nOtherwise the file name will be `{custom_name}.jsonl`.\n\nIf custom name is not provided, the stream name will be used.\n" | ||
} | ||
] | ||
} |
Oops, something went wrong.