Skip to content

Commit

Permalink
feat(templates): Add pytest-github-actions-annotate-failures for Gi…
Browse files Browse the repository at this point in the history
…tHub workflows of tap, target and mapper templates
  • Loading branch information
edgarrmondragon committed Feb 5, 2025
1 parent 61a0b88 commit fab41f1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ s3 = [

[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest>=8",
"singer-sdk[testing]~=0.44.3",
{%- if cookiecutter.include_ci_files == "GitHub" %}
"pytest-github-actions-annotate-failures>=0.3",
{%- endif %}
"singer-sdk[testing]",
]

{%- if cookiecutter.variant != "None (Skip)" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

[tox]
envlist = py3{9,10,11,12,13}
minversion = 4.22
requires =
tox>=4.19
tox>=4.22

[testenv]
pass_env =
{{cookiecutter.mapper_id.replace('-', '_').upper()}}_*
deps =
pytest
dependency_groups =
test
commands =
pytest {posargs}
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ s3 = [

[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest>=8",
"singer-sdk[testing]~=0.44.3",
{%- if cookiecutter.include_ci_files == "GitHub" %}
"pytest-github-actions-annotate-failures>=0.3",
{%- endif %}
"singer-sdk[testing]",
]

{%- if cookiecutter.variant != "None (Skip)" %}
Expand Down
7 changes: 4 additions & 3 deletions cookiecutter/tap-template/{{cookiecutter.tap_id}}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

[tox]
envlist = py3{9,10,11,12,13}
minversion = 4.22
requires =
tox>=4.19
tox>=4.22

[testenv]
pass_env =
{{cookiecutter.tap_id.replace('-', '_').upper()}}_*
deps =
pytest
dependency_groups =
test
commands =
pytest {posargs}
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ s3 = [

[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest>=8",
"singer-sdk[testing]~=0.44.3",
{%- if cookiecutter.include_ci_files == "GitHub" %}
"pytest-github-actions-annotate-failures>=0.3",
{%- endif %}
"singer-sdk[testing]",
]

{%- if cookiecutter.variant != "None (Skip)" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

[tox]
envlist = py3{9,10,11,12,13}
minversion = 4.22
requires =
tox>=4.19
tox>=4.22

[testenv]
pass_env =
{{cookiecutter.target_id.replace('-', '_').upper()}}_*
deps =
pytest
dependency_groups =
test
commands =
pytest {posargs}

0 comments on commit fab41f1

Please sign in to comment.