From 39e69eec35d8858a55e9e1ad2b7b9fa96e6f1968 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 7 Jul 2025 17:05:00 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index e5f6a7b1..dbe7f3ee 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -18,15 +18,7 @@ jobs: curl -fsSL https://pixi.sh/install.sh | bash export PATH="$HOME/.pixi/bin:$PATH" pixi install - - - name: Setup Python venv and install pytest-html - run: | - python3 -m venv .venv - source .venv/bin/activate - pip install --upgrade pip - pip install pytest pytest-html - - name: Install Java for Allure run: | sudo apt update -y @@ -87,8 +79,12 @@ jobs: env: CI_TOKEN: ${{ secrets.CI_TOKEN }} - - name: Run tests and generate pytest-html report + - name: Create venv, install pytest-html, and run tests run: | + python3 -m venv .venv + source .venv/bin/activate + pip install --upgrade pip + pip install pytest pytest-html pytest --html=ci-reports/html-report.html --self-contained-html - name: Commit and push pytest-html report @@ -101,8 +97,6 @@ jobs: env: CI_TOKEN: ${{ secrets.CI_TOKEN }} - - - name: Cleanup Pixi cache run: | rm -rf ~/.cache/rattler