From fb0e5ad62429ab31706af573eee74f0677b94183 Mon Sep 17 00:00:00 2001 From: David Slusser Date: Sat, 18 Apr 2026 14:42:24 -0700 Subject: [PATCH 1/2] adding codeant coverage to pytest --- .github/workflows/pytest.yaml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 2f09f02..058540f 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -1,15 +1,39 @@ -name: pytest +name: Unittest Execution (pytest) -on: [push] +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened] jobs: pytest: runs-on: ubuntu-latest name: "pytest" + steps: + - uses: actions/checkout@v4 + + - name: Install uv + run: pip install uv + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + r-base \ + r-base-dev \ + libtirpc-dev + - uses: davidslusser/actions_python_pytest@v1.0.1 with: src: "" - options: "" - pip_install_command: "pip install -e .[dev]" - python_version: "3.11" + options: "--cov --cov-report=term-missing --cov-report=xml" + pip_install_command: "uv pip install -e .[dev] --system" + + - name: Upload coverage to CodeAnt AI + if: github.ref == 'refs/heads/main' + uses: CodeAnt-AI/codeant-coverage-action@v0.0.5 + with: + access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }} + coverage_file: coverage.xml From 2850d3694a4f62fd1b13f94d1a35c8401b7eba51 Mon Sep 17 00:00:00 2001 From: David Slusser Date: Sat, 18 Apr 2026 14:52:11 -0700 Subject: [PATCH 2/2] remove system installs --- .github/workflows/pytest.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 058540f..d5f1c63 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -17,14 +17,6 @@ jobs: - name: Install uv run: pip install uv - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - r-base \ - r-base-dev \ - libtirpc-dev - - uses: davidslusser/actions_python_pytest@v1.0.1 with: src: ""