Skip to content

Commit 1cad925

Browse files
committed
[Core] Add back end-to-end autotest
1 parent a998b66 commit 1cad925

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/autotest_e2e.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Autotest (End-to-End)"
2+
# We allow this autotest to fail since it currently requires exact match of output, which is not always appropriate.
3+
4+
on:
5+
push:
6+
branches:
7+
- "main"
8+
workflow_dispatch:
9+
10+
jobs:
11+
autotest:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: "Download assets"
17+
uses: actions/checkout@v4
18+
with:
19+
repository: "PrepPipe/preppipe-assets"
20+
ref: "main"
21+
path: assets
22+
- name: "Download test repo"
23+
uses: actions/checkout@v4
24+
with:
25+
repository: "PrepPipe/preppipe-test"
26+
ref: "main"
27+
path: preppipe-test
28+
- uses: ./.github/actions/build
29+
- name: build assets
30+
shell: bash
31+
run: python3 -X utf8 ./build_assets.py --export-built-embedded src/preppipe/assets/_install
32+
- name: Install test dependencies
33+
shell: bash
34+
run: |
35+
python3 -m pip install --upgrade pip
36+
pip install pytest
37+
- name: Run tests
38+
shell: bash
39+
run: |
40+
pytest -v --tb=short preppipe-test/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ _antlr_generated
158158
# source assets repo
159159
assets/
160160

161+
# end-to-end test repo
162+
preppipe-test/
163+
161164
# generated asset packs
162165
src/preppipe/assets/_install
163166

0 commit comments

Comments
 (0)