From b8abbace5346d134e0a41acdb9eff69566ebcc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20S=C3=A6ther?= Date: Sun, 7 Jun 2026 00:06:07 +0200 Subject: [PATCH] ci: add GitHub Actions build/test workflow and status badge Add a CI workflow that installs the apt build deps (libmeschach-dev, libyaml-dev), builds with make, and runs the cross-check harness unit tests via pytest. Add a CI status badge to the README alongside the license badge. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..86a7c36 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + name: Build and test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libmeschach-dev libyaml-dev + + - name: Check dependencies + run: make check-deps + + - name: Build + run: make + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Run cross-check harness unit tests + run: | + python -m pip install --upgrade pip pytest + python -m pytest tools/fh_crosscheck/ -q diff --git a/README.md b/README.md index 5e2f466..2bc40b6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # WEEKS Microstrip Calculator with Dielectric Support ## YAML Input Format Version +[![CI](https://github.com/osaether/weeks/actions/workflows/ci.yml/badge.svg)](https://github.com/osaether/weeks/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) ---