✨ Don't overwrite jzwbs in webdav folder #2593
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FragDenStaat CI | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- uses: pre-commit/action@v3.0.1 | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
cache-dependency-glob: | | |
requirements*.txt | |
pyproject.toml | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install system-level dependencies | |
run: sudo apt-get update && sudo apt-get install libxml2-dev libxslt1-dev python3-dev libgdal-dev gdal-bin libmagic-dev libmagickwand-dev gettext libpoppler-cpp-dev | |
- name: Setup venv | |
run: | | |
uv venv --python ${{ matrix.python-version }} | |
source .venv/bin/activate | |
echo PATH=$PATH >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
uv pip install -r requirements-dev.txt | |
uv pip install -e . --no-deps | |
playwright install --with-deps chromium | |
pnpm install | |
- name: Build frontend | |
run: pnpm run build | |
- name: Compile translations | |
run: uv run python manage.py compilemessages -i node_modules | |
- name: Run tests | |
run: | | |
uv run coverage run --branch -m pytest --reuse-db | |
uv run coverage report --format=markdown >> $GITHUB_STEP_SUMMARY | |
env: | |
DATABASE_URL: postgis://postgres:postgres@localhost/fragdenstaat_de | |
services: | |
postgres: | |
image: postgis/postgis:16-3.4 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: fragdenstaat_de | |
ports: | |
- 5432:5432 | |
elasticsearch: | |
image: elasticsearch:8.14.3 | |
ports: | |
- 9200:9200 |