Skip to content

Bump immutable from 5.1.1 to 5.1.5 #5288

Bump immutable from 5.1.1 to 5.1.5

Bump immutable from 5.1.1 to 5.1.5 #5288

Workflow file for this run

name: Hypha CI
on:
pull_request:
branches:
- main
push:
branches:
- main
- test
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
test-be:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
DATABASE_URL: postgres://hypha:hypha@localhost/hypha?sslmode=disable
DJANGO_SETTINGS_MODULE: hypha.settings.test
SEND_MESSAGES: false
PYTHONDONTWRITEBYTECODE: 1
APPLICATION_TRANSLATIONS_ENABLED: 1 # Run tests for machine translation logic
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: hypha
POSTGRES_PASSWORD: hypha
POSTGRES_DB: hypha
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
group: [1, 2, 3]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install python dependencies
run: |
uv venv
uv sync --frozen --group translate
- name: Create static_compiled dir
run: |
mkdir hypha/static_compiled
- name: Check Django migrations
if: matrix.group == 1
run: |
uv run python manage.py makemigrations --dry-run --verbosity=3
uv run python manage.py makemigrations --check
- name: Run django collectstatic
if: matrix.group == 2
run: |
uv run python manage.py collectstatic --noinput --no-post-process --verbosity=1
- name: Check Django Setup
if: matrix.group == 3
run: |
uv run python manage.py check
- name: Run pytest
run: |
uv run pytest --splits 3 --group ${{ matrix.group }}