This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user