Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,41 @@ jobs:
outputs:
docker-tag: ${{ steps.docker-tag.outputs.docker-tag }}
env:
UV_FROZEN: true
PYTHON_APP_ENVIRONMENT: development
CI: true # Enable pytest CI mode
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Install uv
uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
with:
version-file: pyproject.toml
resolution-strategy: lowest

- name: Install Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version-file: .python-version

- name: Install Python packages
run: uv sync --locked
run: |
unset UV_FROZEN
uv sync --locked
shell: bash

- name: Check code
run: make check-code
shell: bash

- name: Unit tests
run: uv run --frozen -- pytest --cov=python_template --cov-branch tests/unit
run: uv run -- pytest --cov=python_template --cov-branch tests/unit
shell: bash

- name: Integration tests
if: false
run: uv run --frozen -- pytest --cov=python_template --cov-branch --cov-append tests/integration
run: uv run -- pytest --cov=python_template --cov-branch --cov-append tests/integration
shell: bash

- name: Set up Docker Buildx
Expand Down