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

This commit is contained in:
2025-07-07 17:10:55 +02:00
parent 835a12959a
commit 64ff84f6da
+5 -8
View File
@@ -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"