Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4d0f7b

Browse files
committed
debug
1 parent99c0cab commitf4d0f7b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

‎.github/workflows/ci.yaml‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,20 @@ jobs:
6464
print("Success")
6565
with open(github_output, 'a') as output_file:
6666
print(f'{output_name}=success', file=output_file)
67+
# This is used by the `required` job to determine if the test-go-pg job
68+
# failed or not on the given OS. Matrix jobs don't support `outputs`
69+
# well - the last job to run overwrites them. Instead, we write to
70+
# artifacts.
6771
-if:always()
68-
run:echo "0" > "pg_result_${{ matrix.os }}"
72+
run:echo "0" > "test-go-pg_result_${{ matrix.os }}"
6973
-if:failure()
70-
run:echo "1" > "pg_result_${{ matrix.os }}"
74+
run:echo "1" > "test-go-pg_result_${{ matrix.os }}"
7175
-name:Upload result artifact
7276
if:always()
7377
uses:actions/upload-artifact@v4
7478
with:
75-
name:"pg_result_${{ matrix.os }}"
76-
path:"pg_result_${{ matrix.os }}"
79+
name:"test-go-pg_result_${{ matrix.os }}"
80+
path:"test-go-pg_result_${{ matrix.os }}"
7781

7882

7983
required:
@@ -97,11 +101,11 @@ jobs:
97101
uses:step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7# v2.10.1
98102
with:
99103
egress-policy:audit
100-
-name:DownloadPG Failed Artifacts
104+
-name:Downloadtest-go-pg Artifacts
101105
uses:actions/download-artifact@v4
102106
with:
103-
path:pg_result
104-
pattern:pg_result_*
107+
path:test-go-pg_result
108+
pattern:test-go-pg_result_*
105109
merge-multiple:true
106110
-name:Ensure required checks
107111
shell:python
@@ -122,20 +126,18 @@ jobs:
122126
print()
123127
124128
failed =False
125-
print("all files")
126-
print(list(Path(".").glob("*")))
127129
for job_name in job_names:
128130
result = jobs[job_name]["result"]
129131
130132
# Skip test-go-pg failures on windows
131133
if job_name == "test-go-pg" and result == "failure":
132-
result_artifacts = list(Path("pg_result").glob("pg_result_*"))
133-
print("result_artifacts")
134-
print(result_artifacts)
134+
result_artifacts = list(Path("test-go-pg_result").glob("test-go-pg_result_*"))
135135
results = {f.name: int(f.read_text()) for f in result_artifacts}
136-
del results["pg_result_windows-2022"]
136+
del results["test-go-pg_result_windows-2022"]
137137
if sum(results.values()) == 0:
138+
print("test-go-pg on windows-2022 failed, but we are skipping it")
138139
continue
140+
139141
if result in ["failure", "cancelled"]:
140142
failed =True
141143
break

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp