/
kikinaski
/
SE_FastAPI_Example
Обзор
Документация
Войти
/
kikinaski
/
SE_FastAPI_Example
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
.gitverse/workflows/ci.yml
55 строк
1 KB
Tikhomirov
fix: cache not found
14 май 2026, 17:43
14 май 2026, 17:43
6408a70
Код
Авторство
О чём код?
name: Python CI on: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Configure pip cache run: | echo "PIP_CACHE_DIR=$GITHUB_WORKSPACE/.cache/pip" >> "$GITHUB_ENV" mkdir -p "$GITHUB_WORKSPACE/.cache/pip" - name: Cache pip id: cache-pip uses: actions/cache@v4 with: path: .cache/pip key: ${{ runner.os }}-python-3.12-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-python-3.12-pip- - name: Show pip cache status run: | echo "pip cache hit: ${{ steps.cache-pip.outputs.cache-hit }}" python -m pip cache dir - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install -r requirements.txt python -m pip install flake8 - name: Run tests run: python -m pytest -v --junitxml=report.xml - name: Upload test results uses: actions/upload-artifact@v4 if: always() with: name: pytest-results path: report.xml - name: Run flake8 run: flake8 .