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

feat(templates): Add pytest-github-actions-annotate-failures for GitHub workflows of tap, target and mapper templates #2872

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
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,17 @@

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

[testenv]
pass_env =
{%- if cookiecutter.include_ci_files == "GitHub" %}
GITHUB_*
{%- endif %}
{{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
10 changes: 7 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,17 @@

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

[testenv]
pass_env =
{%- if cookiecutter.include_ci_files == "GitHub" %}
GITHUB_*
{%- endif %}
{{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,17 @@

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

[testenv]
pass_env =
{%- if cookiecutter.include_ci_files == "GitHub" %}
GITHUB_*
{%- endif %}
{{cookiecutter.target_id.replace('-', '_').upper()}}_*
deps =
pytest
dependency_groups =
test
commands =
pytest {posargs}
Loading