Skip to content

Commit

Permalink
Improve CI testing
Browse files Browse the repository at this point in the history
Now it verifies that 廣韻.csv is built from sources in the same commit.
  • Loading branch information
syimyuzya committed Sep 4, 2024
1 parent afeb8bc commit 94781b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check
- name: Verify that 廣韻.csv is built from current source
shell: bash
run: |
tmpdir="$(mktemp -d -p ~)"
mv 韻書/廣韻.csv "$tmpdir"
python build.py
diff "$tmpdir"/廣韻.csv 韻書/廣韻.csv
- name: Run check script
run: python check.py

0 comments on commit 94781b9

Please sign in to comment.