diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 934d9fa..4a6986e 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -16,25 +16,28 @@ 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 @@ -42,12 +45,12 @@ jobs: 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