Skip to content

chore(deps): bump the package-updates group across 1 directory with 17 updates #3933

chore(deps): bump the package-updates group across 1 directory with 17 updates

chore(deps): bump the package-updates group across 1 directory with 17 updates #3933

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@v6
- 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 mypy .
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@v6
- 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@v6
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@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build the image
id: docker_build
uses: docker/build-push-action@v7
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: .