Skip to content

Commit

Permalink
airbyte-cdk: run poetry check in CI (#39404)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored Jul 5, 2024
1 parent 5573c3f commit 1eac62f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airbyte-cdk/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -91,8 +91,9 @@ lint = {cmd = "pflake8 --config ../../pyproject.toml ./", help = "Lint with fla
type-check = {cmd = "bin/run-mypy-on-modified-files.sh", help = "Type check modified files with mypy."}
unit-test-with-cov = {cmd = "pytest -s unit_tests -c pytest.ini --cov=airbyte_cdk --cov-report=term --cov-config ../../pyproject.toml", help = "Run unit tests and create a coverage report."}
# TODO: find a version of the modified mypy check that works both locally and in CI.
check-local = {sequence = ["lint", "type-check", "unit-test-with-cov"], help = "Lint all code, type-check modified files, and run unit tests."}
check-ci = {sequence = ["build", "lint", "unit-test-with-cov"], help = "Build the package, lint and run unit tests. Does not include type-checking."}
check-lockfile = {cmd = "poetry check", help = "Check the poetry lock file."}
check-local = {sequence = ["lint", "type-check", "check-lockfile", "unit-test-with-cov"], help = "Lint all code, type-check modified files, and run unit tests."}
check-ci = {sequence = ["check-lockfile", "build", "lint", "unit-test-with-cov"], help = "Build the package, lint and run unit tests. Does not include type-checking."}

# Build and check
pre-push = {sequence = ["build", "check-local"], help = "Run all build and check tasks."}

0 comments on commit 1eac62f

Please sign in to comment.