refactor: use context manager for request logging #342
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: push | |
| jobs: | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 | |
| - name: Install UV | |
| run: pip install uv cookiecutter | |
| - name: Cache Dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-uv-${{ hashFiles('pyproject.toml') }} | |
| - name: Generate Project with Cookiecutter | |
| run: | | |
| ls -l | |
| cookiecutter --no-input . | |
| cd name-of-the-project | |
| - name: Create Virtual Environment for UV | |
| run: | | |
| cd name-of-the-project | |
| make install | |
| echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV | |
| echo "$(pwd)/.venv/bin" >> $GITHUB_PATH | |
| - name: Install Dependencies | |
| run: | | |
| cd name-of-the-project | |
| uv pip install -e ".[dev]" | |
| - name: Run Tests | |
| run: | | |
| cd name-of-the-project | |
| uv run pytest tests -vv --show-capture=all |