From 64ff84f6da9ce1adaf6592cfe8a63e877f7b5bc0 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 7 Jul 2025 17:10:55 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 3f6c9c8c2..f1dea6785 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -33,10 +33,13 @@ jobs: sudo mv allure-2.27.0 /opt/allure sudo ln -s /opt/allure/bin/allure /usr/local/bin/allure - - name: Run tests and generate reports + - name: Run tests and generate reports (Allure + pytest-html) run: | export PATH="$HOME/.pixi/bin:$PATH" - pixi run pytest --cov=slic --cov-report=xml --cov-report=html --alluredir=allure-results + pixi run pip install pytest-html + pixi run pytest --cov=slic --cov-report=xml --cov-report=html \ + --alluredir=allure-results \ + --html=ci-reports/html-report.html --self-contained-html allure generate allure-results -o allure-report - name: Copy reports to ci-reports/ @@ -79,12 +82,6 @@ jobs: env: CI_TOKEN: ${{ secrets.CI_TOKEN }} - - name: Run pytest with HTML in Pixi - run: | - export PATH="$HOME/.pixi/bin:$PATH" - pixi run pip install pytest-html - pixi run pytest --html=ci-reports/html-report.html --self-contained-html - - name: Commit and push pytest-html report run: | git config user.name "ci-bot"