From 2b5d697ff2efb72b2ebfc38538f9d4a63d99d584 Mon Sep 17 00:00:00 2001 From: Karan Gupta Date: Sun, 8 Feb 2026 17:14:21 +0530 Subject: [PATCH 1/2] workflows --- .github/workflows/tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..310f53e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,32 @@ +name: Tests + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.14' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyspark pandas pyarrow numpy py4j pytest coverage + + - name: Run tests with coverage + run: | + coverage run -m pytest tests/ -v + coverage report + coverage xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: ./coverage.xml + fail_ci_if_error: false From 73386da25a9c5d05d39acb9d71a49813ead2a389 Mon Sep 17 00:00:00 2001 From: Karan Gupta Date: Sun, 8 Feb 2026 17:17:20 +0530 Subject: [PATCH 2/2] fix coverage upload --- .github/workflows/tests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 310f53e..542f1ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,8 +25,10 @@ jobs: coverage report coverage xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + - name: Upload coverage report + uses: actions/upload-artifact@v4 with: - files: ./coverage.xml - fail_ci_if_error: false + name: coverage-report + path: | + coverage.xml + .coverage