diff --git a/.gitea/workflows/run.yaml b/.gitea/workflows/run.yaml index 4cdd715..8439940 100644 --- a/.gitea/workflows/run.yaml +++ b/.gitea/workflows/run.yaml @@ -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/ \ No newline at end of file