Skip to content

Switch to the common CI workflow #220

Switch to the common CI workflow

Switch to the common CI workflow #220

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-django-api.yml@main
secrets: inherit
with:
python-version: 3.9
postgres-major-version: 14
use-postgis: true
extra-commands: |
# Spin up ES with Raudikko
touch .docker/django/.env
docker compose up -d elasticsearch
# Configure sysctl limits
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144