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"