/
pepler-sys
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
pepler-sys
/
SE_FastAPI_Example
Код
Запросы
2
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
.gitverse/workflows/fastapi.yaml
50 строк
1 KB
pepler-sys
create .gitverse/workflows/fastapi.yaml
12 май 2026, 20:16
Верифицирован
12 май 2026, 20:16
3363120
Код
Авторство
О чём код?
name: CI Pipeline on: push: branches: [ main, master, develop ] pull_request: branches: [ main, master ] jobs: test-and-lint: runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - name: Cache pip packages uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install pytest flake8 - name: Lint with flake8 run: | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | pytest --junitxml=report.xml - name: Upload test report uses: actions/upload-artifact@v4 with: name: pytest-report path: report.xml