mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Add back PYTEST_ARGS as PYTEST_ADOPTS (#16024)
* Add back PYTEST_ARGS * use pytest adopts
This commit is contained in:
4
Makefile
4
Makefile
@@ -315,7 +315,7 @@ black: reports
|
|||||||
@chmod +x .git/hooks/pre-commit
|
@chmod +x .git/hooks/pre-commit
|
||||||
|
|
||||||
genschema: reports
|
genschema: reports
|
||||||
$(MAKE) swagger PYTEST_ARGS="--genschema --create-db "
|
$(MAKE) swagger PYTEST_ADDOPTS="--genschema --create-db "
|
||||||
mv swagger.json schema.json
|
mv swagger.json schema.json
|
||||||
|
|
||||||
swagger: reports
|
swagger: reports
|
||||||
@@ -354,7 +354,7 @@ live_test:
|
|||||||
|
|
||||||
## Run all API unit tests with coverage enabled.
|
## Run all API unit tests with coverage enabled.
|
||||||
test_coverage:
|
test_coverage:
|
||||||
$(MAKE) test PYTEST_ARGS="--create-db $(COVERAGE_ARGS)"
|
$(MAKE) test PYTEST_ADDOPTS="--create-db $(COVERAGE_ARGS)"
|
||||||
@if [ "${GITHUB_ACTIONS}" = "true" ]; \
|
@if [ "${GITHUB_ACTIONS}" = "true" ]; \
|
||||||
then \
|
then \
|
||||||
echo 'cov-report-files=awxkit/coverage.xml,reports/coverage.xml' >> "${GITHUB_OUTPUT}"; \
|
echo 'cov-report-files=awxkit/coverage.xml,reports/coverage.xml' >> "${GITHUB_OUTPUT}"; \
|
||||||
|
|||||||
Reference in New Issue
Block a user