/
asbres
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
asbres
/
SE_FastAPI_Example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
main
.gitverse/workflows/ci.yml
46 строк
927 B
Александр Семененко
feature: ci cd
16 май 2026, 13:13
16 май 2026, 13:13
01a1e3b
Код
Авторство
О чём код?
name: Python CI on: push: branches: - main - master - "*" jobs: test: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v4 with: python-version: "3.11" - name: Cache pip dependencies uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - name: Upgrade pip run: python -m pip install --upgrade pip - name: Install dependencies run: | pip install -r requirements.txt - name: Run flake8 run: flake8 . - name: Run tests run: pytest --junitxml=report.xml - name: Upload report uses: actions/upload-artifact@v3 with: name: pytest-report path: report.xml