Update .gitea/workflows/test.yml
Run Pytest and Generate Reports / tests (push) Failing after 56s

This commit is contained in:
2025-07-07 17:05:00 +02:00
parent ea83f9a993
commit 39e69eec35
+5 -11
View File
@@ -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