24 lines
719 B
YAML
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 .
|