fix: #431 use a dedicated secret for jwt #450
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: PR Checks | |
| on: | |
| pull_request: | |
| branches: [master] | |
| types: [opened, synchronize, reopened, updated] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Cache Poetry dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cache/pypoetry | |
| .venv | |
| key: poetry-${{ runner.os }}-py3.12-${{ hashFiles('pyproject.toml', 'poetry.lock') }} | |
| restore-keys: | | |
| poetry-${{ runner.os }}-py3.12- | |
| - name: Install dependencies | |
| run: make dev-install | |
| - name: Run pre-commit | |
| run: make pre-commit | |
| frontend-test: | |
| name: Frontend Tests (Node 20) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run frontend tests | |
| run: npm test | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-versions }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.12, 3.13, 3.14] | |
| django-versions: [5.0, 6.0] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Cache Poetry dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cache/pypoetry | |
| .venv | |
| key: poetry-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'poetry.lock') }} | |
| restore-keys: | | |
| poetry-${{ runner.os }}-py${{ matrix.python-version }}- | |
| - name: Install dependencies | |
| run: make dev-install | |
| - name: Set Django version | |
| run: pip install "Django==${{ matrix.django-versions }}" | |
| - name: Run tests | |
| run: make test |