Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gen reg tests #689

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add generative regression tests to ci
  • Loading branch information
gpucce committed Oct 22, 2023
commit 654533772966e9c3af13a512460a776e59d86896
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Continuous integration
on:
push:
branches:
- main
- main
paths-ignore:
- '**.md'
- 'CITATION.cff'
Expand All @@ -12,7 +12,7 @@ on:
- 'docs/**'
pull_request:
branches:
- main
- main
paths-ignore:
- '**.md'
- 'CITATION.cff'
Expand Down Expand Up @@ -83,13 +83,26 @@ jobs:
tests \
| head -n -2 | grep -Po 'test_inference_with_data\[\K[^]]*(?=-False]|-True])' \
> models_gh_runner.txt
python -m pytest \
--quiet --co \
--splitting-algorithm least_duration \
--splits ${{ matrix.job_num }} \
--group ${{ matrix.job }} \
-m generative_regression_test \
tests \
| grep -Po 'test_generate_with_data\[\K[^]]*' \
> generative_models_gh_runner.txt
if [ -n "${{ inputs.manual_revision_reference }}" ]; then
REVISION_REFERENCE=${{ inputs.manual_revision_reference }}
fi
python tests/util_test.py \
--save_model_list models_gh_runner.txt \
--model_list models_gh_runner.txt \
--git_revision $REVISION_REFERENCE
python tests/util_test.py \
--save_generative_model_list generative_models_gh_runner.txt \
--model_list generative_models_gh_runner.txt \
--git_revision $REVISION_REFERENCE
- name: Unit tests
run: |
source .env/bin/activate
Expand Down