Skip to content

Commit c733c86

Browse files
authored
fix: e2e-suite.yml typo in pytest and set file name properly (#518)
1 parent 5f8281d commit c733c86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/e2e-suite.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ jobs:
4040
timestamp=$(date +'%Y%m%d%H%M')
4141
report_filename="${timestamp}_cli_test_report.xml"
4242
status=0
43-
if ! pytest -m tests/integration --disable-warnings --junitxml="${report_filename}"; then
43+
if ! pytest tests/integration --disable-warnings --junitxml="${report_filename}"; then
4444
echo "Tests failed, but attempting to upload results anyway"
4545
fi
4646
env:
4747
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN }}
4848

4949
- name: Upload test results
5050
run: |
51-
linode-cli obj --cluster us-southeast-1 put "${report_filename}" dx-test-results
51+
filename=$(ls | grep -E '^[0-9]{12}_cli_test_report\.xml$')
52+
linode-cli obj --cluster us-southeast-1 put "${filename}" dx-test-results
5253
env:
5354
LINODE_CLI_TOKEN: ${{ secrets.SHARED_DX_TOKEN }}
5455
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}

0 commit comments

Comments
 (0)