SQ-805: Add organisation + user role to registration form #27
Workflow file for this run
This file contains hidden or 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: alembic migration scripts validation with pytest-alembic | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/divbase-api/src/divbase_api/migrations/**' | |
| - 'packages/divbase-api/src/divbase_api/models/**' | |
| - 'tests/migrations/**' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/divbase-api/src/divbase_api/migrations/**' | |
| - 'packages/divbase-api/src/divbase_api/models/**' | |
| - 'tests/migrations/**' | |
| jobs: | |
| test-migration-scripts-with-pytest-alembic: | |
| name: python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.9.15" | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --dev | |
| - name: Run pytest-alembic tests | |
| run: uv run pytest tests/migrations |