.gitea/workflows/run.yaml aktualisiert
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m54s Details

This commit is contained in:
Falko Victor Habel 2024-11-01 06:59:07 +00:00
parent acec227e54
commit b9fa45a261
1 changed files with 9 additions and 17 deletions

View File

@ -10,13 +10,11 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
# Set up Python
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11.7' python-version: '3.11.7'
# Cache pip dependencies
- name: Cache pip dependencies - name: Cache pip dependencies
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -24,28 +22,22 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
# Install Tkinter dependencies
- name: Install Tkinter dependencies - name: Install system dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y python3-tk sudo apt-get install -y python3-tk xvfb
# Install UI dependencies
- name: Install UI dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb python3-tk
# Install dependencies
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
# Download and unzip model
- name: Download model - name: Download model
run: | run: |
curl -L -o VeraMind-Mini.zip https://gitea.fabelous.app/Fabel/VeraMind/releases/download/latest/VeraMind-Mini.zip 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 unzip VeraMind-Mini.zip -d ./VeraMind-mini
# Run tests
- name: Run tests - name: Run tests with Xvfb
run: | run: |
pytest tests/ xvfb-run -a pytest tests/