forked from MigoXLab/dingo
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (60 loc) · 2.2 KB
/
IntegrationTest.yml
File metadata and controls
66 lines (60 loc) · 2.2 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
64
65
66
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements/runtime.txt ]; then pip install -r requirements/runtime.txt; fi
pip install pyspark
pip install tavily-python
pip install -e .
- name: Check Python syntax and imports
run: |
python .github/scripts/check_imports.py
- name: Integration Test(local plaintext)
run: |
python -m dingo.run.cli --input .github/env/local_plaintext.json
python -m dingo.run.cli --input .github/env/local_plaintext_save.json
- name: Integration Test(local json)
run: |
python -m dingo.run.cli --input .github/env/local_json.json
- name: Integration Test(local jsonl)
run: |
python -m dingo.run.cli --input .github/env/local_jsonl.json
- name: Integration Test(local listjson)
run: |
python -m dingo.run.cli --input .github/env/local_listjson.json
- name: Integration Test(huggingface plaintext)
run: |
python -m dingo.run.cli --input .github/env/hf_plaintext.json
- name: Integration Test(huggingface json)
run: |
python -m dingo.run.cli --input .github/env/hf_json.json
- name: Integration Test(huggingface jsonl)
run: |
python -m dingo.run.cli --input .github/env/hf_jsonl.json
- name: Integration Test(huggingface listjson)
run: |
python -m dingo.run.cli --input .github/env/hf_listjson.json
- name: Integration Test(custom config)
run: |
python -m dingo.run.cli --input .github/env/custom_config_rule.json
- name: Run unit tests
run: |
pytest test/scripts --ignore=test/scripts/data