Skip to content

Commit

Permalink
ci: Only run tests when relevant code changes (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Aug 26, 2024
1 parent 4aa2cf9 commit ba7ad87
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ sqlalchemy = "sa"

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
addopts = '--durations=10'

0 comments on commit ba7ad87

Please sign in to comment.