From daf157a188097e28552ed32cd8c128a6405ffa67 Mon Sep 17 00:00:00 2001 From: TIP Date: Sat, 28 Feb 2026 01:32:01 +0100 Subject: [PATCH] ci: add minimal governance lint/tests workflow --- .github/workflows/ci-governance.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci-governance.yml diff --git a/.github/workflows/ci-governance.yml b/.github/workflows/ci-governance.yml new file mode 100644 index 0000000..d0aaf65 --- /dev/null +++ b/.github/workflows/ci-governance.yml @@ -0,0 +1,40 @@ +name: ci-governance + +on: + pull_request: + push: + branches: + - master + +jobs: + lint: + name: ci / lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Compile check + run: python -m compileall -q . + + tests: + name: ci / tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run minimal tests + run: | + pytest -q test_ndcg_standalone.py test_evaluation.py +