File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 61
61
- name : Run pylint
62
62
run : poetry run pylint openapi_python_client
63
63
64
+ - name : Regenerate Golden Record
65
+ run : poetry run task regen_e2e
66
+
64
67
- name : Run pytest
65
68
run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests/test_end_to_end.py --basetemp=tests/tmp
66
69
env :
74
77
with :
75
78
files : ./coverage.xml
76
79
80
+ - uses : stefanzweifel/git-auto-commit-action@v4
81
+ with :
82
+ commit_message : " chore: Regenerate E2E Golden Record"
83
+
77
84
integration :
78
85
name : Integration Tests
79
86
runs-on : ubuntu-latest
@@ -108,8 +115,6 @@ jobs:
108
115
run : |
109
116
cd integration_tests
110
117
poetry run openapi-python-client update --url http://localhost:3000/openapi.json
111
- - name : Check if there are changes to the client
112
- run : changed_files=$(git status --porcelain | wc -l) && [ changed_files != 0 ] && exit 1
113
118
- name : Cache Generated Client Dependencies
114
119
uses : actions/cache@v2
115
120
with :
@@ -127,3 +132,6 @@ jobs:
127
132
run : |
128
133
cd integration_tests/openapi-test-server-client
129
134
poetry run pytest
135
+ - uses : stefanzweifel/git-auto-commit-action@v4
136
+ with :
137
+ commit_message : " chore: Regenerate Integration Client"
Original file line number Diff line number Diff line change @@ -66,16 +66,20 @@ isort .\
66
66
&& rm -r tests/tmp\
67
67
"""
68
68
regen = """
69
- python -m end_to_end_tests.regen_golden_record\
70
- && pushd integration_tests\
71
- && openapi-python-client update --url https://raw.githubusercontent.com/openapi-generators/openapi-test-server/main/openapi.json\
72
- && popd
69
+ task regen_e2e\
70
+ && task regen_integration\
73
71
"""
74
72
e2e = " pytest openapi_python_client end_to_end_tests/test_end_to_end.py"
75
73
re = """
76
74
task regen\
77
75
&& task e2e\
78
76
"""
77
+ regen_e2e = " python -m end_to_end_tests.regen_golden_record"
78
+ regen_integration = """
79
+ pushd integration_tests\
80
+ && openapi-python-client update --url https://raw.githubusercontent.com/openapi-generators/openapi-test-server/main/openapi.json\
81
+ && popd
82
+ """
79
83
docs = " typer openapi_python_client/cli.py utils docs > usage.md"
80
84
81
85
[tool .black ]
You can’t perform that action at this time.
0 commit comments