forked from uehara1414/japanize-matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (50 loc) · 1.19 KB
/
ci.yaml
File metadata and controls
63 lines (50 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
run-demo:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
with:
enable-cache: false
- run: uv run demo.py
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
with:
enable-cache: false
- run: uv build --no-sources
create-snapshot:
uses: ./.github/workflows/create-snapshot.yaml
with:
artifact-name: snapshot
compare-snapshot:
needs: create-snapshot
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- run: rm -rf test/snapshot
- name: Download snapshots
uses: actions/download-artifact@v5
with:
name: snapshot
path: test/snapshot
- name: Compare snapshots
run: |
git add --intent-to-add test/snapshot
git diff --exit-code test/snapshot