/
iamstacyok
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
iamstacyok
/
SE_FastAPI_Example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
main
.gitverse/workflows/ci.yml
49 строк
1 KB
iamstacyok
Fix pytest module path in CI
11 май 2026, 21:04
11 май 2026, 21:04
c28f318
Код
Авторство
О чём код?
name: Python CI on: push: pull_request: workflow_dispatch: jobs: test-and-lint: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.11" - name: Restore pip cache 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: Run flake8 run: flake8 . - name: Run pytest and create JUnit report env: PYTHONPATH: ${{ github.workspace }} run: pytest --junitxml=report.xml - name: Upload test report artifact if: always() uses: actions/upload-artifact@v4 with: name: pytest-report path: report.xml retention-days: 7