name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest steps: - 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: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- # Install Tkinter dependencies - name: Install Tkinter dependencies run: | sudo apt-get update sudo apt-get install -y python3-tk # Install UI dependencies - name: Install Tkinter dependencies run: | sudo apt-get update sudo apt-get install -y xvfb python3-tk # Install dependencies - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt # Download and unzip model - 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 run: | pytest tests/