mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
ci: bump astral-sh/setup-uv in /.github/actions/setup
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 7.2.1 to 7.3.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](803947b9bd...eac588ad8d)
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: 7.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
78 lines
2.9 KiB
YAML
78 lines
2.9 KiB
YAML
name: "Setup authentik testing environment"
|
|
description: "Setup authentik testing environment"
|
|
|
|
inputs:
|
|
dependencies:
|
|
description: "List of dependencies to setup"
|
|
default: "system,python,node,go,runtime"
|
|
postgresql_version:
|
|
description: "Optional postgresql image tag"
|
|
default: "16"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install apt deps & cleanup
|
|
if: ${{ contains(inputs.dependencies, 'system') || contains(inputs.dependencies, 'python') }}
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get remove --purge man-db
|
|
sudo apt-get update
|
|
sudo apt-get install --no-install-recommends -y libpq-dev openssl libxmlsec1-dev pkg-config gettext krb5-multidev libkrb5-dev heimdal-multidev libclang-dev krb5-kdc krb5-user krb5-admin-server
|
|
sudo rm -rf /usr/local/lib/android
|
|
- name: Install uv
|
|
if: ${{ contains(inputs.dependencies, 'python') }}
|
|
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v5
|
|
with:
|
|
enable-cache: true
|
|
- name: Setup python
|
|
if: ${{ contains(inputs.dependencies, 'python') }}
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
|
|
with:
|
|
python-version-file: "pyproject.toml"
|
|
- name: Install Python deps
|
|
if: ${{ contains(inputs.dependencies, 'python') }}
|
|
shell: bash
|
|
run: uv sync --all-extras --dev --frozen
|
|
- name: Setup node
|
|
if: ${{ contains(inputs.dependencies, 'node') }}
|
|
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v4
|
|
with:
|
|
node-version-file: web/package.json
|
|
cache: "npm"
|
|
cache-dependency-path: web/package-lock.json
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- name: Setup go
|
|
if: ${{ contains(inputs.dependencies, 'go') }}
|
|
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v5
|
|
with:
|
|
go-version-file: "go.mod"
|
|
- name: Setup docker cache
|
|
if: ${{ contains(inputs.dependencies, 'runtime') }}
|
|
uses: AndreKurait/docker-cache@0fe76702a40db986d9663c24954fc14c6a6031b7
|
|
with:
|
|
key: docker-images-${{ runner.os }}-${{ hashFiles('.github/actions/setup/compose.yml', 'Makefile') }}-${{ inputs.postgresql_version }}
|
|
- name: Setup dependencies
|
|
if: ${{ contains(inputs.dependencies, 'runtime') }}
|
|
shell: bash
|
|
run: |
|
|
export PSQL_TAG=${{ inputs.postgresql_version }}
|
|
docker compose -f .github/actions/setup/compose.yml up -d
|
|
cd web && npm i
|
|
- name: Generate config
|
|
if: ${{ contains(inputs.dependencies, 'python') }}
|
|
shell: uv run python {0}
|
|
run: |
|
|
from authentik.lib.generators import generate_id
|
|
from yaml import safe_dump
|
|
|
|
with open("local.env.yml", "w") as _config:
|
|
safe_dump(
|
|
{
|
|
"log_level": "debug",
|
|
"secret_key": generate_id(),
|
|
},
|
|
_config,
|
|
default_flow_style=False,
|
|
)
|