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 +