Skip to content

Glossary support for Google Cloud Translation Advanced #27741

Glossary support for Google Cloud Translation Advanced

Glossary support for Google Cloud Translation Advanced #27741

Workflow file for this run

# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Migrations
on:
push:
branches-ignore:
- deepsource-fix-**
- renovate/**
- weblate
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
migrations:
runs-on: ubuntu-24.04
strategy:
matrix:
database: [postgresql, mysql]
fail-fast: false
name: ${{ matrix.database }}
env:
CI_DATABASE: ${{ matrix.database }}
CI_DB_PASSWORD: weblate
CI_DB_HOST: 127.0.0.1
CI_DB_PORT: '60000'
CI_SELENIUM: '1'
DJANGO_SETTINGS_MODULE: weblate.settings_test
UV_FROZEN: '1'
steps:
- uses: actions/checkout@v4
- name: Start services
run: ./ci/services-up ${{ matrix.database }}
- name: Install apt dependencies
run: sudo ./ci/apt-install $CI_DATABASE
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: ''
# Do not share cache with tests as this uses python 3.11 for older versions
cache-suffix: multi
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Python dependencies
run: ./ci/pip-install latest
- name: Check missing migrations
run: ./ci/run-checkmigrate
- name: Migrate from 5.0
run: ./ci/run-migrate 5.0.2
- name: Migrate from 5.1
run: ./ci/run-migrate 5.1.1
- name: Migrate from 5.2
run: ./ci/run-migrate 5.2.1
- name: Migrate from 5.3
run: ./ci/run-migrate 5.3.1
- name: Migrate from 5.4
run: ./ci/run-migrate 5.4.3
- name: Migrate from 5.5
run: ./ci/run-migrate 5.5
- name: Migrate from 5.6
run: ./ci/run-migrate 5.6
- name: Migrate from 5.7
run: ./ci/run-migrate 5.7
- name: Migrate from 5.8
run: ./ci/run-migrate 5.8
- name: Coverage
run: |
uv run --no-sources coverage combine
uv run --no-sources coverage xml
- uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
flags: migrations
name: Migrations ${{ matrix.database }}
- name: Stop services
if: always()
run: ./ci/services-down ${{ matrix.database }}