Skip to content

Commit 7dc1d03

Browse files
committed
ci(prooflens): remove python job and fix site paths
1 parent 46ce6f7 commit 7dc1d03

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ on:
44
pull_request: { branches: [ main ] }
55

66
jobs:
7-
python:
8-
runs-on: ubuntu-latest
9-
defaults: { run: { working-directory: signer } }
10-
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-python@v5
13-
with: { python-version: '3.11' }
14-
- run: pip install --upgrade pip ruff bandit
15-
- run: ruff check . || true
16-
- run: bandit -q -r . || true
17-
187
web:
198
runs-on: ubuntu-latest
209
steps:
2110
- uses: actions/checkout@v4
22-
- name: Verify site files exist
11+
- name: Sanity check site files
12+
shell: bash
2313
run: |
24-
test -f site/demo-embed.html
25-
test -f site/verify.html
26-
echo "Site sanity OK"
14+
set -e
15+
# Accept either root or site/ layout to be robust
16+
if [ -f demo-embed.html ]; then
17+
echo "Found root-level pages."
18+
test -f demo-embed.html
19+
test -f verify.html
20+
elif [ -f site/demo-embed.html ]; then
21+
echo "Found site/ pages."
22+
test -f site/demo-embed.html
23+
test -f site/verify.html
24+
else
25+
echo "Could not find demo-embed.html or verify.html" >&2
26+
exit 1
27+
fi
28+
echo "Site sanity OK."

0 commit comments

Comments
 (0)