diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8900fe2..a8eb914 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,32 @@ name: Test tap-postgres on: pull_request: + branches: [main] types: [opened, synchronize, reopened] + paths: + - .github/workflows/test.yml + - log_based/** + - pagila/** + - ssh_tunnel/** + - ssl/** + - tap_postgres/** + - tests/** + - poetry.lock + - pyproject.toml + - tox.ini push: branches: [main] + paths: + - .github/workflows/test.yml + - log_based/** + - pagila/** + - ssh_tunnel/** + - ssl/** + - tap_postgres/** + - tests/** + - poetry.lock + - pyproject.toml + - tox.ini workflow_dispatch: inputs: {} diff --git a/pyproject.toml b/pyproject.toml index ac83d67..252b464 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,3 +121,6 @@ sqlalchemy = "sa" [tool.ruff.lint.pydocstyle] convention = "google" + +[tool.pytest.ini_options] +addopts = '--durations=10'