CI: drop python runner label; mirror AtAnyRate install style.
This commit is contained in:
parent
7fe325be68
commit
9eda1507f4
@ -30,22 +30,23 @@ jobs:
|
||||
python-ci:
|
||||
needs: skip-ci-check
|
||||
if: needs.skip-ci-check.outputs.should-skip != '1'
|
||||
runs-on: [homelab, self-hosted, linux, python]
|
||||
runs-on: [homelab, self-hosted, linux]
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python + run pytest
|
||||
- name: Install Python tooling
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 python3-pip python3-venv python3-dev
|
||||
python3 --version
|
||||
python3 -m pip install --upgrade pip setuptools wheel --break-system-packages
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 python3-pip python3-venv
|
||||
python3 -m pip install --upgrade pip --break-system-packages
|
||||
python3 -m pip install pytest setuptools wheel --break-system-packages
|
||||
python3 -m pip install -e "./backend[dev]" --break-system-packages
|
||||
cd backend
|
||||
python3 -m pytest -q
|
||||
|
||||
- name: Pytest
|
||||
working-directory: backend
|
||||
run: python3 -m pytest -q
|
||||
|
||||
secret-scan:
|
||||
needs: skip-ci-check
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user