-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.34 KB
/
test.yml
File metadata and controls
55 lines (42 loc) · 1.34 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
name: Tests
on:
push:
jobs:
smoketest:
name: Smoke test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
- name: "Smoke test: try to annotate some images"
run: lp-labelstudio process-newspaper --redo src/lp_labelstudio/web_server/test_images/
- name: Show results for page 1
run: cat src/lp_labelstudio/web_server/test_images/page_01_annotations.json|jq -C
- name: Show results for page 2
run: cat src/lp_labelstudio/web_server/test_images/page_02_annotations.json|jq -C
pytest:
name: Run pytest tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
- name: Install pytest
run: pip install pytest
- name: Run pytest
run: pytest
test-alto:
name: Test Alto XML
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Pull docker images to run ALTO XML test
run: cd test-alto && docker compose pull
- name: Run ALTO XML test
run: cd test-alto && bash test-alto-batch.sh example-file/0001.xml