From 2dfd1c32e4ca8d49bffb864c24788a4bc168c445 Mon Sep 17 00:00:00 2001 From: Ming Ying Date: Fri, 30 Jan 2026 12:15:07 -0500 Subject: [PATCH 1/2] Coveralls integration. --- .github/workflows/coveralls.yml | 40 +++++++++++++++++++++++++++++++++ requirements.txt | 4 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/coveralls.yml diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..db1d318f --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,40 @@ +name: Test + +on: + workflow_dispatch: + push: + branches: + - "*.*.*" + - "main" + - "master" + pull_request: + branches: "*" + +permissions: + contents: read + +jobs: + test: + name: Test Changes + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run pytest with coverage + run: | + pytest --cov=. --cov-report=xml --cov-report=term + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v2 + continue-on-error: true \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index fb13600a..628fb739 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,6 @@ tqdm requests_aws4auth pandas xlsxwriter -prefect \ No newline at end of file +prefect +pytest +pytest-cov \ No newline at end of file From 62b1e173ded586c3b251c54078f09118e1d6d2d8 Mon Sep 17 00:00:00 2001 From: Ming Ying Date: Fri, 30 Jan 2026 12:29:34 -0500 Subject: [PATCH 2/2] Checkout submodule when running unit tests in GitHub actions. --- .github/workflows/coveralls.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index db1d318f..d3e4eaea 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -20,6 +20,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + with: + submodules: recursive - name: Set up Python uses: actions/setup-python@v5