Skip to content

Commit 75542cb

Browse files
[Tidy] Make CI actually fail (#1029)
1 parent 33dd93a commit 75542cb

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.github/workflows/pycafe-dashboards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Print PR Number
3131
run: |
3232
echo "Pull Request Number: ${{ github.event.workflow_run.pull_requests[0].number }}"
33-
- name: Test PyCafe links
33+
- name: Test PyCafe links # Eventually we should merge this with the create_pycafe_links_comments.py script
3434
run: |
3535
hatch run python ../tools/pycafe/test_pycafe_links.py --github-token ${{ github.token }} --repo-name ${{ github.repository }} --run-id ${{ github.event.workflow_run.id }} --commit-sha ${{ github.event.workflow_run.head_sha }}
3636
- name: Create PyCafe links

tools/pycafe/test_pycafe_links.py

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from pycafe_utils import (
88
PyCafeConfig,
99
create_github_client,
10+
create_status_check,
1011
generate_link,
1112
)
1213

@@ -66,5 +67,10 @@ def test_pycafe_link(url: str, wait_for_text: str):
6667
# Test the link
6768
success = test_pycafe_link(url=url_generated, wait_for_text="Vizro Features")
6869

70+
# Only create a status check if the test fails. On success, the status check will be created
71+
# by the create_pycafe_links_comments.py script when it posts the comment.
72+
if not success:
73+
create_status_check(commit, dev_directory, url_generated, state="failure")
74+
6975
# Exit with appropriate status code
7076
sys.exit(0 if success else 1)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Highlights ✨
9+
10+
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
11+
12+
-->
13+
<!--
14+
### Removed
15+
16+
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
17+
18+
-->
19+
<!--
20+
### Added
21+
22+
- A bullet item for the Added category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
23+
24+
-->
25+
<!--
26+
### Changed
27+
28+
- A bullet item for the Changed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
29+
30+
-->
31+
<!--
32+
### Deprecated
33+
34+
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
35+
36+
-->
37+
<!--
38+
### Fixed
39+
40+
- A bullet item for the Fixed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
41+
42+
-->
43+
<!--
44+
### Security
45+
46+
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
47+
48+
-->

0 commit comments

Comments
 (0)