-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Build and publish with GitHub Actions (#342)
- Loading branch information
1 parent
778e4b6
commit ca720b8
Showing
3 changed files
with
64 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and Publish Python Package | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
name: Build wheel and sdist | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.baipp.outputs.package_version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
id: baipp | ||
|
||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/meltanolabs-tap-github/${{ needs.build.outputs.version }} | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload wheel to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/*.whl | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
- name: Deploy to PyPI | ||
uses: pypa/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
[tool.poetry] | ||
name = "tap-github" | ||
version = "1.9.0" | ||
description = "`tap-github` is Singer tap for GitHub, built with the Singer SDK." | ||
authors = ["Meltano and Meltano Community"] | ||
version = "1.10.0" | ||
description = "Singer tap for GitHub, built with the Singer SDK." | ||
authors = ["Meltano and Meltano Community <[email protected]>"] | ||
maintainers = [ | ||
"Meltano and Meltano Community <[email protected]>", | ||
"Edgar Ramírez-Mondragón <[email protected]>", | ||
] | ||
homepage = "https://github.com/MeltanoLabs/tap-github" | ||
repository = "https://github.com/MeltanoLabs/tap-github" | ||
license = "Apache-2.0" | ||
keywords = ["Meltano", "Singer", "Meltano SDK", "Singer SDK", "ELT", "Github"] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
|
@@ -34,7 +39,7 @@ requests = "~=2.32.3" | |
# singer-sdk = {path = "../singer-sdk", develop = true} | ||
singer-sdk = "~=0.43.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
[tool.poetry.group.dev.dependencies] | ||
pytest = ">=7.3.1" | ||
requests-cache = ">=1.0.1" | ||
types-beautifulsoup4 = ">=4.12.0" | ||
|
@@ -66,16 +71,16 @@ target-version = "py39" | |
[tool.ruff.lint] | ||
ignore = [] | ||
select = [ | ||
"F", # Pyflakes | ||
"E", # pycodestyle (errors) | ||
"W", # pycodestyle (warnings) | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"DTZ", # flake8-datetimez | ||
"FA", # flake8-future-annotations | ||
"SIM", # flake8-simplify | ||
"TC", # flake8-type-checking | ||
"F", # Pyflakes | ||
"E", # pycodestyle (errors) | ||
"W", # pycodestyle (warnings) | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"DTZ", # flake8-datetimez | ||
"FA", # flake8-future-annotations | ||
"SIM", # flake8-simplify | ||
"TC", # flake8-type-checking | ||
"PERF", # Perflint | ||
"FURB", # refurb | ||
"RUF", # Ruff-specific rules | ||
"RUF", # Ruff-specific rules | ||
] |