mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
fix: nitpick and upload awxkit coverage to ci
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -94,7 +94,11 @@ jobs:
|
||||
run: |
|
||||
if [ -f "reports/coverage.xml" ]; then
|
||||
sed -i '2i<!-- PR ${{ github.event.pull_request.number }} -->' reports/coverage.xml
|
||||
echo "Injected PR number ${{ github.event.pull_request.number }} into coverage.xml"
|
||||
echo "Injected PR number ${{ github.event.pull_request.number }} into reports/coverage.xml"
|
||||
fi
|
||||
if [ -f "awxkit/coverage.xml" ]; then
|
||||
sed -i '2i<!-- PR ${{ github.event.pull_request.number }} -->' awxkit/coverage.xml
|
||||
echo "Injected PR number ${{ github.event.pull_request.number }} into awxkit/coverage.xml"
|
||||
fi
|
||||
|
||||
- name: Upload test coverage to Codecov
|
||||
@@ -141,7 +145,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.tests.name }}-artifacts
|
||||
path: reports/coverage.xml
|
||||
path: |
|
||||
reports/coverage.xml
|
||||
awxkit/coverage.xml
|
||||
retention-days: 5
|
||||
|
||||
- name: >-
|
||||
|
||||
@@ -290,13 +290,6 @@ class CLI(object):
|
||||
pass
|
||||
parsed, extra = self.parser.parse_known_args(self.argv)
|
||||
else:
|
||||
# Try to parse to determine if help is requested for a specific action
|
||||
try:
|
||||
self.parser.parse_known_args()[0]
|
||||
except SystemExit:
|
||||
# This happens when required arguments are missing, which is expected behavior
|
||||
# Let argparse handle it and show the appropriate help
|
||||
raise
|
||||
parsed, extra = self.parser.parse_known_args()
|
||||
|
||||
if extra and self.verbose:
|
||||
|
||||
Reference in New Issue
Block a user