| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f517a18 commit 51f6717
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,9 @@ jobs: | |||
| 14 | 14 | with: | |
| 15 | 15 | python-version: ${{ matrix.python-version }} | |
| 16 | 16 | cache: pip | |
| 17 | - - run: pip install -e . pytest check-manifest | ||
| 17 | + # `datasets` is the one `qe` extra the tests import; without it the QE | ||
| 18 | + # eval-run tests skip instead of running. | ||
| 19 | + - run: pip install -e . pytest check-manifest datasets | ||
| 18 | 20 | - run: pytest -q | |
| 19 | 21 | # The sdist must contain exactly the tracked tree, no more and no less. | |
| 20 | 22 | - run: check-manifest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,12 +5,17 @@ | |||
| 5 | 5 | into the data; TeleQnA-router ships all five runs with `run` as a column, and | |
| 6 | 6 | before it was restructured the default split selection silently picked a single | |
| 7 | 7 | (cluster, run) slice instead, which is what this filter replaces. | |
| 8 | + | ||
| 9 | + Needs the `qe` extra. | ||
| 8 | 10 | """ | |
| 9 | 11 | ||
| 10 | 12 | import pytest | |
| 11 | - from datasets import Dataset | ||
| 12 | 13 | ||
| 13 | - from cre_router.qe.train import select_eval_run | ||
| 14 | + pytest.importorskip("datasets") | ||
| 15 | + | ||
| 16 | + from datasets import Dataset # noqa: E402 | ||
| 17 | + | ||
| 18 | + from cre_router.qe.train import select_eval_run # noqa: E402 | ||
| 14 | 19 | ||
| 15 | 20 | ||
| 16 | 21 | def five_runs(questions=4, runs=5): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments