.gitea/workflows/run.yaml aktualisiert
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m54s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m54s
Details
This commit is contained in:
parent
acec227e54
commit
b9fa45a261
|
@ -10,13 +10,11 @@ jobs:
|
|||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Set up Python
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11.7'
|
||||
|
||||
# Cache pip dependencies
|
||||
- name: Cache pip dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -24,28 +22,22 @@ jobs:
|
|||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
# Install Tkinter dependencies
|
||||
- name: Install Tkinter dependencies
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-tk
|
||||
# Install UI dependencies
|
||||
- name: Install UI dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb python3-tk
|
||||
# Install dependencies
|
||||
sudo apt-get install -y python3-tk xvfb
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
# Download and unzip model
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Download model
|
||||
run: |
|
||||
curl -L -o VeraMind-Mini.zip https://gitea.fabelous.app/Fabel/VeraMind/releases/download/latest/VeraMind-Mini.zip
|
||||
unzip VeraMind-Mini.zip -d ./VeraMind-mini
|
||||
# Run tests
|
||||
- name: Run tests
|
||||
|
||||
- name: Run tests with Xvfb
|
||||
run: |
|
||||
pytest tests/
|
||||
|
||||
xvfb-run -a pytest tests/
|
Loading…
Reference in New Issue