Files
akyldash/.gitea/workflows/ci.yaml
T
2026-10-11 18:27:15 +03:00

21 lines
634 B
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
tests-and-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run backend tests
run: PYTHONPATH=backend python3 -m unittest discover -s backend -p 'test_*.py' -v
- name: Run Telegram bot tests
run: python3 -m unittest discover -s tools/telegram-bot -p 'test_*.py' -v
- name: Build production images
run: |
docker build -f deploy/production/Dockerfile.backend -t akyldash-backend:ci .
docker build -f deploy/production/Dockerfile.opensearch -t akyldash-opensearch:ci .