29 lines
576 B
YAML
29 lines
576 B
YAML
name: Flask CI
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install flask
|
|
pip install pytest
|
|
pip install -r requirements/dev.txt || true # якщо є
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python -m pytest tests
|