From 2bf2e863d4a70620da3f46d10dd65132cc373aff Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 15 Aug 2025 11:59:39 -0400 Subject: [PATCH] Add actions workflow file for auto tests --- .gitea/workflows/run-tests.yml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/run-tests.yml diff --git a/.gitea/workflows/run-tests.yml b/.gitea/workflows/run-tests.yml new file mode 100644 index 0000000..b2f2b27 --- /dev/null +++ b/.gitea/workflows/run-tests.yml @@ -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 \ No newline at end of file -- 2.34.1