Commit dataset for CI and github workflow
This commit is contained in:
parent
0da8ba97c4
commit
b64a2b08ee
4 changed files with 147 additions and 0 deletions
28
.github/workflows/test.yml
vendored
Normal file
28
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Tests
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: astral-sh/setup-uv@v4
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version-file: "pyproject.toml"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync --all-extras
|
||||||
|
- name: Run tests
|
||||||
|
run: uv run pytest
|
||||||
|
- name: Type check
|
||||||
|
run: uv run pyright
|
||||||
|
- name: Lint
|
||||||
|
run: uv run ruff check
|
||||||
BIN
tests/data/dataset/data-00000-of-00001.arrow
Normal file
BIN
tests/data/dataset/data-00000-of-00001.arrow
Normal file
Binary file not shown.
106
tests/data/dataset/dataset_info.json
Normal file
106
tests/data/dataset/dataset_info.json
Normal file
|
|
@ -0,0 +1,106 @@
|
||||||
|
{
|
||||||
|
"builder_name": "parquet",
|
||||||
|
"citation": "",
|
||||||
|
"config_name": "default",
|
||||||
|
"dataset_name": "repliqa",
|
||||||
|
"dataset_size": 648387648,
|
||||||
|
"description": "",
|
||||||
|
"download_checksums": {
|
||||||
|
"hf://datasets/ServiceNow/repliqa@bc880adc948fd3a70d5f8b2b3a1d1ee90d820dbd/data/repliqa_0-00000-of-00001.parquet": {
|
||||||
|
"num_bytes": 20855947,
|
||||||
|
"checksum": null
|
||||||
|
},
|
||||||
|
"hf://datasets/ServiceNow/repliqa@bc880adc948fd3a70d5f8b2b3a1d1ee90d820dbd/data/repliqa_1-00000-of-00001.parquet": {
|
||||||
|
"num_bytes": 20903799,
|
||||||
|
"checksum": null
|
||||||
|
},
|
||||||
|
"hf://datasets/ServiceNow/repliqa@bc880adc948fd3a70d5f8b2b3a1d1ee90d820dbd/data/repliqa_2-00000-of-00001.parquet": {
|
||||||
|
"num_bytes": 20876034,
|
||||||
|
"checksum": null
|
||||||
|
},
|
||||||
|
"hf://datasets/ServiceNow/repliqa@bc880adc948fd3a70d5f8b2b3a1d1ee90d820dbd/data/repliqa_3-00000-of-00001.parquet": {
|
||||||
|
"num_bytes": 20919214,
|
||||||
|
"checksum": null
|
||||||
|
},
|
||||||
|
"hf://datasets/ServiceNow/repliqa@bc880adc948fd3a70d5f8b2b3a1d1ee90d820dbd/data/repliqa_4-00000-of-00001.parquet": {
|
||||||
|
"num_bytes": 20866527,
|
||||||
|
"checksum": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"download_size": 104421521,
|
||||||
|
"features": {
|
||||||
|
"document_id": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"document_topic": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"document_path": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"document_extracted": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"question_id": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"question": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"answer": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
},
|
||||||
|
"long_answer": {
|
||||||
|
"dtype": "string",
|
||||||
|
"_type": "Value"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"homepage": "",
|
||||||
|
"license": "",
|
||||||
|
"size_in_bytes": 752809169,
|
||||||
|
"splits": {
|
||||||
|
"repliqa_0": {
|
||||||
|
"name": "repliqa_0",
|
||||||
|
"num_bytes": 129579219,
|
||||||
|
"num_examples": 17955,
|
||||||
|
"dataset_name": "repliqa"
|
||||||
|
},
|
||||||
|
"repliqa_1": {
|
||||||
|
"name": "repliqa_1",
|
||||||
|
"num_bytes": 129844840,
|
||||||
|
"num_examples": 17955,
|
||||||
|
"dataset_name": "repliqa"
|
||||||
|
},
|
||||||
|
"repliqa_2": {
|
||||||
|
"name": "repliqa_2",
|
||||||
|
"num_bytes": 129338522,
|
||||||
|
"num_examples": 17955,
|
||||||
|
"dataset_name": "repliqa"
|
||||||
|
},
|
||||||
|
"repliqa_3": {
|
||||||
|
"name": "repliqa_3",
|
||||||
|
"num_bytes": 129981017,
|
||||||
|
"num_examples": 17955,
|
||||||
|
"dataset_name": "repliqa"
|
||||||
|
},
|
||||||
|
"repliqa_4": {
|
||||||
|
"name": "repliqa_4",
|
||||||
|
"num_bytes": 129644050,
|
||||||
|
"num_examples": 17950,
|
||||||
|
"dataset_name": "repliqa"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"version_str": "0.0.0",
|
||||||
|
"major": 0,
|
||||||
|
"minor": 0,
|
||||||
|
"patch": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
13
tests/data/dataset/state.json
Normal file
13
tests/data/dataset/state.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"_data_files": [
|
||||||
|
{
|
||||||
|
"filename": "data-00000-of-00001.arrow"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_fingerprint": "2e29f63d782f12f0",
|
||||||
|
"_format_columns": null,
|
||||||
|
"_format_kwargs": {},
|
||||||
|
"_format_type": null,
|
||||||
|
"_output_all_columns": false,
|
||||||
|
"_split": "repliqa_3"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue