Eslonf's picture
ci: Add GitHub Actions workflow for automated testing
8521a92
Raw
History Blame Contribute Delete
811 Bytes
name: Run Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Шаг 1: Скачать код из нашего репозитория
- name: Checkout repository
uses: actions/checkout@v4
# Шаг 2: Настроить окружение Python нужной версии
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
# Шаг 3: Установить все зависимости из requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Шаг 4: Запустить тесты!
- name: Run tests
run: |
pytest