From 1a3085ff40991ffd4afbb7b61e17415aabb5cc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adria=CC=80=20Sala?= Date: Mon, 2 Mar 2026 12:11:36 +0100 Subject: [PATCH] fix: nitpick and upload awxkit coverage to ci --- .github/workflows/ci.yml | 10 ++++++++-- awxkit/awxkit/cli/client.py | 7 ------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52acdef2f9..0561df2711 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,11 @@ jobs: run: | if [ -f "reports/coverage.xml" ]; then sed -i '2i' 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' 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: >- diff --git a/awxkit/awxkit/cli/client.py b/awxkit/awxkit/cli/client.py index 252c87dcce..6f507b8316 100755 --- a/awxkit/awxkit/cli/client.py +++ b/awxkit/awxkit/cli/client.py @@ -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: