From 9608f626e105ba3d0ad35b02df5a3336f39ff336 Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 14:28:16 -0600 Subject: [PATCH 1/8] explicit path codecov --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 9069a38c..a3190853 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -33,7 +33,7 @@ jobs: - name: Generate coverage report run: | - pytest --cov --cov-branch --cov-report=xml + pytest --cov=. --cov-branch --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 From 7b36d850b930cf9a4f5f45406aff06d8b24ba4d3 Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 14:36:47 -0600 Subject: [PATCH 2/8] explicit bird only --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a3190853..7d68128b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -33,7 +33,7 @@ jobs: - name: Generate coverage report run: | - pytest --cov=. --cov-branch --cov-report=xml + pytest --cov=bird --cov-branch --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 From 17e8a44fe98f4ce98ab8556b16ea7998f6e63ffd Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 14:41:42 -0600 Subject: [PATCH 3/8] absolute path --- .github/workflows/codecov.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 7d68128b..f6a252d1 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -13,6 +13,9 @@ on: jobs: codecov: runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{github.workspace}} steps: - name: Checkout uses: actions/checkout@v4 @@ -33,7 +36,7 @@ jobs: - name: Generate coverage report run: | - pytest --cov=bird --cov-branch --cov-report=xml + pytest --cov=${{github.workspace}}/bird --cov-branch --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 From e809d4d9a8fa9935075285429dd6b7eeecc05875 Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 14:47:31 -0600 Subject: [PATCH 4/8] revert codecov v --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index f6a252d1..4c44461e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -39,7 +39,7 @@ jobs: pytest --cov=${{github.workspace}}/bird --cov-branch --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml From b9cb14c4b42f00ea30f258fe9be7b67e73e309ff Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 14:51:59 -0600 Subject: [PATCH 5/8] fix syntax of codecov --- .github/workflows/codecov.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4c44461e..65f25f56 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -29,15 +29,14 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - pip install . pip install pytest pip install pytest-cov + pip install . python -m pip install --upgrade pip - name: Generate coverage report run: | - pytest --cov=${{github.workspace}}/bird --cov-branch --cov-report=xml - + pytest --cov=./ --cov-report=xml:coverage.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: From 8834a880232338433c11aec17ef6e6ee9f16c784 Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 15:04:11 -0600 Subject: [PATCH 6/8] remove rogue pip upgrade --- .github/workflows/codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 65f25f56..e580492a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -31,13 +31,13 @@ jobs: pip install --upgrade pip pip install pytest pip install pytest-cov - pip install . - python -m pip install --upgrade pip + pip install -e . - name: Generate coverage report run: | pytest --cov=./ --cov-report=xml:coverage.xml - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} From b41ac7f9e23ef0b4b6adc780847d7d4a8435f59c Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 15:07:35 -0600 Subject: [PATCH 7/8] remove variations --- .github/workflows/codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e580492a..39345119 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -31,14 +31,14 @@ jobs: pip install --upgrade pip pip install pytest pip install pytest-cov - pip install -e . + pip install . - name: Generate coverage report run: | pytest --cov=./ --cov-report=xml:coverage.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml From 831b5630172732ea76115c209166cc267c55f49a Mon Sep 17 00:00:00 2001 From: Malik Date: Sat, 6 Sep 2025 15:10:09 -0600 Subject: [PATCH 8/8] seems like -e is important --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 39345119..06ad1562 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -31,7 +31,7 @@ jobs: pip install --upgrade pip pip install pytest pip install pytest-cov - pip install . + pip install -e . - name: Generate coverage report run: |