Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix codecov #3

Merged
merged 16 commits into from
Jan 22, 2024
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
11 changes: 7 additions & 4 deletions .github/workflows/python_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ jobs:
cd sdks/python
pip install poetry
poetry install --all-extras
- name: Test with pytest

- name: Generate Report
run: |
cd sdks/python
poetry run pytest --disable-warnings --cov
poetry run coverage run -m pytest

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: sdks/python
files: .coverage
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# terrabridge

![CI](https://github.com/launchflow/terrabridge/actions/workflows/python_ci.yaml/badge.svg)
[![Python version](https://badge.fury.io/py/buildflow.svg)](https://pypi.org/project/terrabridge)
[![codecov](https://codecov.io/gh/launchflow/terrabridge/graph/badge.svg?token=slFk4lUP2h)](https://codecov.io/gh/launchflow/terrabridge)

terrabridge is the simplest way to connect your terraform managed resources to your application.
2 changes: 1 addition & 1 deletion sdks/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ authors = ["CalebTVanDyke <ctvandyke24@gmail.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.8"
google-cloud-storage = { version = "*", extras = ["gcp"] }
google-cloud-secret-manager = { version = "*", extras = ["gcp"] }
google-cloud-pubsub = { version = "*", extras = ["gcp"] }
google-cloud-pubsublite = { version = "*", extras = ["gcp"] }
cloud-sql-python-connector = { version = "*", extras = ["gcp"] }
boto3 = { version = "*", extras = ["aws"] }
pytest = {version = "^7.4.4", extras = ["dev"]}
pytest-cov = {version = "^4.1.0", extras = ["dev"]}
pg8000 = {version = "^1.30.4", extras = ["dev"]}
python-tds = {version = "^1.14.0", extras = ["dev"]}
pymysql = {version = "^1.1.0", extras = ["dev"]}
sqlalchemy = {extras = ["dev"], version = "^2.0.25"}
sqlalchemy-pytds = {version = "^1.0.0", extras = ["dev"]}
pytest = { version = "^7.4.4", extras = ["dev"] }
pytest-cov = { version = "^4.1.0", extras = ["dev"] }
pg8000 = { version = "^1.30.4", extras = ["dev"] }
python-tds = { version = "^1.14.0", extras = ["dev"] }
pymysql = { version = "^1.1.0", extras = ["dev"] }
sqlalchemy = { extras = ["dev"], version = "^2.0.25" }
sqlalchemy-pytds = { version = "^1.0.0", extras = ["dev"] }
coverage = { version = "^7.4.0", extras = ["dev"] }


[build-system]
Expand Down
Loading