Make python-ci verbose; pip install setuptools before editable.
This commit is contained in:
parent
870a423c5b
commit
7fe325be68
@ -1,4 +1,4 @@
|
||||
# Homelab CI — pytest (safety/profiles) + gitleaks
|
||||
# Homelab CI — pytest + gitleaks
|
||||
# Skip: @skipci in branch name or commit message
|
||||
name: CI
|
||||
|
||||
@ -36,20 +36,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python + deps
|
||||
- name: Install Python + run pytest
|
||||
run: |
|
||||
set -euo pipefail
|
||||
set -euxo pipefail
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 python3-pip python3-venv
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 python3-pip python3-venv python3-dev
|
||||
python3 --version
|
||||
python3 -m venv .ci-venv
|
||||
.ci-venv/bin/pip install -q -U pip
|
||||
.ci-venv/bin/pip install -q -e "./backend[dev]"
|
||||
|
||||
- name: Pytest
|
||||
run: |
|
||||
set -euo pipefail
|
||||
.ci-venv/bin/pytest -q backend/tests
|
||||
python3 -m pip install --upgrade pip setuptools wheel --break-system-packages
|
||||
python3 -m pip install -e "./backend[dev]" --break-system-packages
|
||||
cd backend
|
||||
python3 -m pytest -q
|
||||
|
||||
secret-scan:
|
||||
needs: skip-ci-check
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user