Files
chess/.gitea/workflows/run-tests.yml
Josh 4639e8fc5c
All checks were successful
Python tests (make) / test (push) Successful in 42s
Python tests (make) / test (pull_request) Successful in 40s
Change container to python3-slim
2025-08-22 15:30:24 -04:00

43 lines
1.1 KiB
YAML

name: Python tests (make)
on:
push:
branches: ["**"]
pull_request:
types: [closed]
jobs:
test:
runs-on: ubuntu-22.04
container: python:3.11-slim
steps:
- name: Install Node (and git/make) inside container
run: |
set -eux
apt-get update
# add gcc & toolchain while keeping your originals
apt-get install -y --no-install-recommends curl ca-certificates git build-essential make
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y --no-install-recommends nodejs
node -v
rm -rf /var/lib/apt/lists/*
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
if: hashFiles('requirements.txt') != ''
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Show Python info
run: |
python --version
pip --version || true
- name: Run tests via make
env:
LD_LIBRARY_PATH: build
run: make test