Skip to content

Bump astral-sh/setup-uv from 7.1.1 to 7.1.5 #105

Bump astral-sh/setup-uv from 7.1.1 to 7.1.5

Bump astral-sh/setup-uv from 7.1.1 to 7.1.5 #105

Workflow file for this run

name: Pull request
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
continuous-integration:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-24.04
outputs:
docker-tag: ${{ steps.docker-tag.outputs.docker-tag }}
env:
PYTHON_APP_ENVIRONMENT: development
CI: true # Enable pytest CI mode
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
version-file: pyproject.toml
resolution-strategy: lowest
- name: Install Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: .python-version
- name: Install Python packages
run: 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
shell: bash
- name: Integration tests
if: false
run: uv run --frozen -- pytest --cov=python_template --cov-branch --cov-append tests/integration
shell: bash
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Set docker tag
id: docker-tag
run: echo "docker-tag=myregistry/python-template:${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
file: src/python_template/api/Dockerfile
tags: ${{ steps.docker-tag.outputs.docker-tag }}
push: false
deploy-dev:
name: Deploy to development
needs: continuous-integration
uses: ./.github/workflows/_deploy.yaml
with:
environment: dev
docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }}
secrets: inherit
deploy-stg:
name: Deploy to staging
needs: [continuous-integration, deploy-dev]
uses: ./.github/workflows/_deploy.yaml
with:
environment: stg
docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }}
secrets: inherit
deploy-prd:
name: Deploy to production
needs: [continuous-integration, deploy-stg]
uses: ./.github/workflows/_deploy.yaml
with:
environment: prd
docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }}
secrets: inherit