Add actions workflow file for auto tests

This commit is contained in:
2025-08-15 11:59:39 -04:00
parent 3ba72c0bc3
commit 2bf2e863d4

View File

@@ -0,0 +1,43 @@
name: Python tests (make)
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
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