Files
chess/.gitea/workflows/run-tests.yml
Josh b9d2f096e0
All checks were successful
Python tests (make) / test (push) Successful in 10s
Update workflow to run on push and pull request close (#4)
Reviewed-on: #4
Co-authored-by: Josh <josh@joshuaschuett.com>
Co-committed-by: Josh <josh@joshuaschuett.com>
2025-08-15 16:30:25 +00: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: mcr.microsoft.com/devcontainers/python:3.11
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