Skip to content

Add ci.yml in workflows (#4) #5

Add ci.yml in workflows (#4)

Add ci.yml in workflows (#4) #5

Workflow file for this run

name: Run Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: # Allow manual trigger
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-glx libglib2.0-0 || sudo apt-get install -y libgl1 libglib2.0-0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest requests ultralytics opencv-python
pip install -e . # Install streamgrid package
- name: Run tests
run: |
pytest tests/core.py