Veracity_AI/.gitea/workflows/run.yaml

43 lines
1.3 KiB
YAML

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
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.7'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-tk xvfb
- name: Install dependencies
run: |
python -m pip install --upgrade pip
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
- name: Run tests with Xvfb
run: |
xvfb-run -a pytest tests/