From d3c65ba195da960ff4ae78ebb6527240296d7a92 Mon Sep 17 00:00:00 2001 From: Kim Pevey Date: Wed, 10 Jan 2024 13:04:21 -0600 Subject: [PATCH] unpack screenshots to specific directory, store jest video in video dir --- .github/workflows/push_images.yml | 4 +++- .github/workflows/test.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_images.yml b/.github/workflows/push_images.yml index 741909dc..b612011e 100644 --- a/.github/workflows/push_images.yml +++ b/.github/workflows/push_images.yml @@ -68,6 +68,8 @@ jobs: if_no_artifact_found: fail # artifact name name: 'screenshots' + # directory in which to put the contents of the artifact + path: 'screenshots' - name: "ls" run: | @@ -78,7 +80,7 @@ jobs: - name: "Copy images to other repo" run: | cd conda-store-repo - cp ../playwright-tests/*.png docusaurus-docs/conda-store-ui/images/. + cp ../screenshots/*.png docusaurus-docs/conda-store-ui/images/. git config user.name ${{ github.actor }} git config user.email '${{ github.actor }}@users.noreply.github.com' git add -A diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0aeafba..76f3bd47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,7 @@ jobs: - name: "Start web server and run tests" shell: bash -el {0} run: | - yarn run start & pytest --video on --output test-results --screenshots true test/playwright/test_ux.py + yarn run start & pytest --video on --output video --screenshots true test/playwright/test_ux.py - name: "Upload screenshot artifacts" uses: actions/upload-artifact@v3