Skip to content

chore(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.1 #3965

chore(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.1

chore(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.1 #3965

Workflow file for this run

name: Linting and Testing
on:
pull_request:
branches:
- main
env:
DEBUG: "true"
SECRET_KEY: "some-insecure-key"
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
CSRF_TRUSTED_ORIGIN: http://127.0.0.1
UV_INDEX_TSD_USERNAME: ${{ secrets.UV_INDEX_TSD_USERNAME }}
UV_INDEX_TSD_PASSWORD: ${{ secrets.UV_INDEX_TSD_PASSWORD }}
AWS_STORAGE_BUCKET_NAME: ${{ secrets.AWS_STORAGE_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
linters:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Setup Python and Poetry
uses: "./.github/actions/setup-python"
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync --frozen
- name: Run linters
run: |
mkdir test_results
uv run ruff check .
uv run ruff format --check .
uv run pyrefly check
working-directory: src/
tests:
runs-on: ubuntu-latest
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- name: Check out the repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Setup Python & Poetry
uses: "./.github/actions/setup-python"
with:
python-version: "3.12"
- name: Install dependencies
run: |
uv sync --frozen
- name: Run tests
run: uv run pytest --junitxml=test_results/TEST-pytest.xml
working-directory: src/
- name: Publish test report
uses: mikepenz/action-junit-report@3a81627bfac62268172037048872e8ebd4207e6d
if: success() || failure() # always run even if the previous step fails
with:
report_paths: "test_results/TEST-*.xml"
# Try to build the docker image to ensure it works
test-docker-image:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5
- name: Build the image
id: docker_build
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf
with:
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
build-args: |
UV_INDEX_TSD_USERNAME=${{ env.UV_INDEX_TSD_USERNAME }}
UV_INDEX_TSD_PASSWORD=${{ env.UV_INDEX_TSD_PASSWORD }}
context: .