Skip to content

Commit 13a57dd

Browse files
committed
ci: prevent Coveralls upload failures from blocking PRs:
Add fail-on-error: false to the Coveralls GitHub Action so that coverage reporting issues do not fail otherwise successful builds.
1 parent 1093fab commit 13a57dd

2 files changed

Lines changed: 35 additions & 28 deletions

File tree

.github/workflows/daily.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,3 @@ jobs:
3636
3737
- name: Run unit test suite
3838
run: pytest tests/unit -q
39-
40-
coverage:
41-
name: Coverage (ubuntu, latest python)
42-
runs-on: ubuntu-24.04
43-
timeout-minutes: 30
44-
steps:
45-
- name: Checkout repo
46-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
47-
48-
- name: Set up Python 3.14
49-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
50-
with:
51-
python-version: "3.14"
52-
cache: pip
53-
54-
- name: Install CodeEntropy and its testing dependencies
55-
run: |
56-
pip install --upgrade pip
57-
pip install -e .[testing]
58-
59-
- name: Run unit test suite with coverage
60-
run: pytest tests/unit --cov CodeEntropy --cov-report term-missing --cov-report xml -q
61-
62-
- name: Coveralls GitHub Action
63-
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
64-
with:
65-
github-token: ${{ secrets.GITHUB_TOKEN }}
66-
file: coverage.xml

.github/workflows/pr.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,38 @@ jobs:
129129
git diff
130130
exit 1
131131
}
132+
133+
coverage:
134+
name: Coverage (ubuntu, latest python)
135+
needs: unit
136+
runs-on: ubuntu-24.04
137+
timeout-minutes: 30
138+
steps:
139+
- name: Checkout repo
140+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
141+
142+
- name: Set up Python 3.14
143+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
144+
with:
145+
python-version: "3.14"
146+
cache: pip
147+
148+
- name: Install (testing)
149+
run: |
150+
python -m pip install --upgrade pip
151+
python -m pip install -e .[testing]
152+
153+
- name: Run unit test suite with coverage
154+
run: |
155+
pytest tests/unit \
156+
--cov CodeEntropy \
157+
--cov-report term-missing \
158+
--cov-report xml \
159+
-q
160+
161+
- name: Upload to Coveralls
162+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
163+
with:
164+
github-token: ${{ secrets.GITHUB_TOKEN }}
165+
file: coverage.xml
166+
fail-on-error: false

0 commit comments

Comments
 (0)