Skip to content

Commit

Permalink
test attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai committed Oct 6, 2023
1 parent eb67a07 commit dbf3ed7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/e2e-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
integration-tests:
name: Run integration tests
runs-on: ubuntu-latest
continue-on-error: true
env:
EXIT_STATUS: 0
steps:
- name: Clone Repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -40,8 +41,11 @@ jobs:
run: |
timestamp=$(date +'%Y%m%d%H%M')
report_filename="${timestamp}_cli_test_report.xml"
status=0
pytest tests/integration --disable-warnings --junitxml="${report_filename}"
if ! pytest tests/integration -k test_help_page_for_non_aliased_actions --disable-warnings --junitxml="${report_filename}"; then
echo "EXIT_STATUS=$?" >> $GITHUB_ENV
else
echo "Tests passed"
fi
env:
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN }}

Expand All @@ -66,4 +70,10 @@ jobs:
env:
LINODE_CLI_TOKEN: ${{ secrets.SHARED_DX_TOKEN }}
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}

- name: Handle Exit status
run: |
if [[ "$EXIT_STATUS" != 0 ]]; then
exit $EXIT_STATUS
fi

0 comments on commit dbf3ed7

Please sign in to comment.