Skip to content

Commit 2680a70

Browse files
committed
actions tidy
1 parent 96484f5 commit 2680a70

3 files changed

Lines changed: 26 additions & 13 deletions

File tree

.github/workflows/ci-org.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,18 @@ jobs:
130130
- name: C2) Add coverage to job summary (if available)
131131
if: always()
132132
run: |
133-
echo "## Test Coverage Report" >> "$GITHUB_STEP_SUMMARY"
134133
if [ -f ".coverage" ]; then
135-
echo '```' >> "$GITHUB_STEP_SUMMARY"
136-
uv run coverage report >> "$GITHUB_STEP_SUMMARY"
137-
echo '```' >> "$GITHUB_STEP_SUMMARY"
134+
{
135+
echo "## Test Coverage Report"
136+
echo '```'
137+
uv run coverage report
138+
echo '```'
139+
} >> "$GITHUB_STEP_SUMMARY"
138140
else
139-
echo "No coverage data available." >> "$GITHUB_STEP_SUMMARY"
141+
{
142+
echo "## Test Coverage Report"
143+
echo "No coverage data available."
144+
} >> "$GITHUB_STEP_SUMMARY"
140145
fi
141146
142147
- name: C3) Upload coverage artifact (if available)

.github/workflows/deploy-zensical.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
- name: D1) Build docs with Zensical
7878
run: |
7979
if [ ! -f "zensical.toml" ]; then
80-
echo "zensical.toml not found; refusing to deploy." >> "$GITHUB_STEP_SUMMARY"
80+
{
81+
echo "zensical.toml not found; refusing to deploy."
82+
} >> "$GITHUB_STEP_SUMMARY"
8183
exit 1
8284
fi
8385
uv run zensical build
@@ -88,9 +90,11 @@ jobs:
8890
# build likely failed or the configuration is incorrect.
8991
run: |
9092
if [ ! -d "site" ]; then
91-
echo "## Documentation build output missing" >> "$GITHUB_STEP_SUMMARY"
92-
echo "Expected directory 'site/' was not created." >> "$GITHUB_STEP_SUMMARY"
93-
echo "Check the Zensical build step and zensical.toml configuration." >> "$GITHUB_STEP_SUMMARY"
93+
{
94+
echo "## Documentation build output missing"
95+
echo "Expected directory 'site/' was not created."
96+
echo "Check the Zensical build step and zensical.toml configuration."
97+
} >> "$GITHUB_STEP_SUMMARY"
9498
exit 1
9599
fi
96100

.github/workflows/release-pypi-shared.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,21 @@ jobs:
145145
- name: D3) Build docs with Zensical
146146
run: |
147147
if [ ! -f "zensical.toml" ]; then
148-
echo "zensical.toml not found; skipping docs deploy." >> "$GITHUB_STEP_SUMMARY"
148+
{
149+
echo "zensical.toml not found; skipping docs deploy."
150+
} >> "$GITHUB_STEP_SUMMARY"
149151
exit 0
150152
fi
151153
uv run zensical build
152154
153155
- name: D4) Verify site output exists
154156
run: |
155157
if [ ! -d "site" ]; then
156-
echo "## Documentation build output missing" >> "$GITHUB_STEP_SUMMARY"
157-
echo "Expected directory 'site/' was not created." >> "$GITHUB_STEP_SUMMARY"
158-
echo "Check the Zensical build step and zensical.toml configuration." >> "$GITHUB_STEP_SUMMARY"
158+
{
159+
echo "## Documentation build output missing"
160+
echo "Expected directory 'site/' was not created."
161+
echo "Check the Zensical build step and zensical.toml configuration."
162+
} >> "$GITHUB_STEP_SUMMARY"
159163
exit 1
160164
fi
161165

0 commit comments

Comments
 (0)