File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
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
-
67
64
- name : Run pytest
68
65
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
69
66
env :
77
74
with :
78
75
files : ./coverage.xml
79
76
80
- - uses : stefanzweifel/git-auto-commit-action@v4
81
- if : runner.os == 'Linux'
82
- with :
83
- commit_message : " chore: Regenerate E2E Golden Record"
84
- file_pattern : end_to_end_tests/golden-record end_to_end_tests/custom-templates-golden-record
85
-
86
77
integration :
87
78
name : Integration Tests
88
79
runs-on : ubuntu-latest
@@ -116,6 +107,8 @@ jobs:
116
107
- name : Regenerate Integration Client
117
108
run : |
118
109
poetry run openapi-python-client update --url http://localhost:3000/openapi.json --config integration-tests-config.yaml
110
+ - name : Check for any file changes
111
+ run : changed_files=$(git status --porcelain | wc -l) && [ changed_files != 0 ] && exit 1
119
112
- name : Cache Generated Client Dependencies
120
113
uses : actions/cache@v2
121
114
with :
@@ -133,6 +126,3 @@ jobs:
133
126
run : |
134
127
cd integration-tests
135
128
poetry run pytest
136
- - uses : stefanzweifel/git-auto-commit-action@v4
137
- with :
138
- commit_message : " chore: Regenerate Integration Client"
You can’t perform that action at this time.
0 commit comments