Skip to content

Commit

Permalink
Update run_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiZhachek authored Oct 12, 2024
1 parent 8731e8b commit 20466ab
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,9 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts/$ARTIFACT_ID/zip
-o artifacts.zip
&&
REPORT_ID=$(curl -L
-H "Accept: application/vnd.github+json"
-H "X-GitHub-Api-Version: 2022-11-28"
"https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts?name=github-pages"
| python -c "import sys, json; print(json.load(sys.stdin)['artifacts'][0]['id']);")
&&
curl -L
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ secrets.TOKEN }}"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts/$REPORT_ID/zip
-o pages.zip
- run: mkdir reports && unzip artifacts.zip -d reports
- run: mkdir reports && unzip artifacts.zip -d reports
- run: mkdir old_pages pages_history && unzip pages.zip -d old_pages && tar -xvf old_pages/artifact.tar -C pages_history
- run: cp pages_history/history/* reports && cp -r pages_history/history reports

- name: Store allure history
uses: actions/upload-artifact@v4
with:
Expand All @@ -60,7 +46,7 @@ jobs:

test:
runs-on: ubuntu-latest

needs: download-history

steps:
- name: Checkout repository
Expand Down

0 comments on commit 20466ab

Please sign in to comment.