Fix CI: install from repo root; allow Python 3.11+.
This commit is contained in:
parent
12a6e2b6bc
commit
870a423c5b
@ -33,22 +33,23 @@ jobs:
|
||||
runs-on: [homelab, self-hosted, linux, python]
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python + deps
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 python3-pip python3-venv
|
||||
python3 --version
|
||||
python3 -m venv .ci-venv
|
||||
.ci-venv/bin/pip install -q -U pip
|
||||
.ci-venv/bin/pip install -q -e ".[dev]"
|
||||
.ci-venv/bin/pip install -q -e "./backend[dev]"
|
||||
|
||||
- name: Pytest
|
||||
run: .ci-venv/bin/pytest -q
|
||||
run: |
|
||||
set -euo pipefail
|
||||
.ci-venv/bin/pytest -q backend/tests
|
||||
|
||||
secret-scan:
|
||||
needs: skip-ci-check
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
name = "talos"
|
||||
version = "0.1.0"
|
||||
description = "Self-hosted pentest orchestrator"
|
||||
requires-python = ">=3.12"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"fastapi>=0.115.0",
|
||||
"uvicorn[standard]>=0.32.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user