Files
akyldash/.gitea/workflows/ci.yaml
T
agent 892781522d
CI / tests-and-images (pull_request) Has been cancelled
Закрепить версию Python в CI
2026-10-11 18:36:36 +03:00

24 lines
719 B
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
tests-and-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- 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 .