-
Notifications
You must be signed in to change notification settings - Fork 14
ci: drop pytest in favor of Sprocket test #263
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
Merged
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
3285664
init demo
a-frantz 7bc1e3a
revise: mv TOML out of tests dir and into main workspace
a-frantz cdb13f7
Merge branch 'main' into demonstration/sprocket-test
a-frantz 6438780
switch from TOML to YAML
a-frantz 62744f2
WIP
a-frantz a9cc715
fix: tests -> assertions
a-frantz e09621c
Update flag_filter.yaml
a-frantz 75b39f7
Merge branch 'main' into demonstration/sprocket-test
a-frantz 0be911a
feat: use Peter's top level mapping representation
a-frantz 374392a
set up sprocket test infra
a-frantz d89fd65
picard: lower merge mem for testing
a-frantz 81d9608
point to new fixtures
a-frantz 5d97f28
Revert "picard: lower merge mem for testing"
a-frantz 1b7235d
WIP
a-frantz 881fa7a
delete pytest folder
a-frantz d2898f0
revise: change validate_read_group logic
a-frantz 6c910ce
test data_structures
a-frantz 64476ad
chore: log TODO
a-frantz c76f201
more tests
a-frantz 2fb9d23
WIP: remove broken CI elements
a-frantz d1e0d99
add test depth (more bams and fastqs tested)
a-frantz 51ad295
Update read_group.yaml
a-frantz 2b7d0dd
nesting for test fixtures
a-frantz b3b9c27
deprecate fastqc
a-frantz 038909d
log TODO
a-frantz 77271b3
tests for fastp and fq
a-frantz 5ed0866
mv reference vcfs to right dir
a-frantz 8a186b6
Create gatk4.yaml
a-frantz 52da94c
WIP
a-frantz da5d286
Merge branch 'main' into demonstration/sprocket-test
a-frantz 8658e21
Update flag_filter.yaml
a-frantz 2758659
fix: SE works in addition to PE
a-frantz c5c9944
Merge branch 'main' into demonstration/sprocket-test
a-frantz 1089835
chore: don't specify defaults in two (disagreeing) places
a-frantz 5b69042
add a few of (experimental) output assertions
a-frantz b1f9d8f
sprocket format
a-frantz 2805d4c
docs: revise best practices and contributing guide (#293)
a-frantz c958f35
chore: add WDL-specific instructions for copilot (#295)
adthrasher 4a7fa73
chore(Snyk): Security upgrade ubuntu from noble-20250925 to noble-202…
kevin-benton 90573e0
chore(deps): bump urllib3 from 2.5.0 to 2.6.3 (#291)
dependabot[bot] 79aa181
feat: gzip picard validate STDOUT (#298)
a-frantz 74e0dbf
feat: methylation filtering (#283)
adthrasher 21bc68f
chore: GiB -> GB (#302)
adthrasher 7c46ddb
sprocket format overwrite the repo (#303)
a-frantz 0e4f7a8
ci: rm redundant or unneeded actions
a-frantz 4f3db73
ci: add a format check
a-frantz 08d5a59
sprocket lints
a-frantz c39480b
ignore failing methylation files
a-frantz 21a7752
ci fix
a-frantz a7b661d
wip: resolving bad merge
a-frantz 6842420
Merge branch 'main' into demonstration/sprocket-test
a-frantz b974e4e
more bad merging resolutions
a-frantz 04324b9
WIP
a-frantz 0fda8e4
WIP for building a new docker image
a-frantz 65cfbb8
fix
a-frantz e6bdb41
finish all tools
a-frantz b2c7fe2
typo
a-frantz 90f011f
lint fixes
a-frantz 08aca48
WIP
a-frantz edfbaf7
fix ci
a-frantz ac53096
Merge branch 'main' into demonstration/sprocket-test
a-frantz a044b1c
fix: sprocket lint fixes
a-frantz 9290baa
use `main` of sprocket-action
a-frantz 975701f
ci: run sprocket test
adthrasher 9dbc832
chore: update JSON with required prefix
adthrasher 32a601e
chore: rename and remove directory
adthrasher 2d78c94
ci: explicitly skip reference and slow tests
adthrasher 922e2f8
ci: matrix on WDL files
adthrasher 30df05f
chore: fix typo
adthrasher cdd39d2
chore: re-add jq command
adthrasher 64756c8
chore: make test depend on build
adthrasher 7fd1a16
chore: exclude 'template' dir and high_mem tag
adthrasher 18d8e96
chore: set tags back to main
adthrasher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Sprocket Test | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| list-files: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| files: ${{ steps.set-files.outputs.files }} | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@v4 | ||
| - name: set files | ||
| id: set-files | ||
| run: echo "files=$(find . -name '*.wdl' -print -o -path "./template" -prune | jq -ncR '[inputs]')" >> $GITHUB_OUTPUT | ||
| sprocket_test: | ||
| needs: list-files | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| file: ${{ fromJson(needs.list-files.outputs.files) }} | ||
| runner: [sprocket] | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| lfs: true | ||
| - name: Update Rust | ||
| run: rustup update stable && rustup default stable | ||
| - name: Build Sprocket | ||
| run: | | ||
| cargo install sprocket --locked | ||
| - name: Update containers | ||
| run: | | ||
| ./developer_scripts/update_container_tags.sh ${GITHUB_REF##*/} | ||
| - name: Run sprocket test | ||
| env: | ||
| RUNNER: ${{ matrix.runner }} | ||
| run: | | ||
| sprocket dev test --filter-tag reference --filter-tag slow --filter-tag high_mem ${{ matrix.file }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| validate_string_is_12bit_int: | ||
| - name: valid_numbers | ||
| inputs: | ||
| number: | ||
| - "5" | ||
| - "0x900" | ||
| - "01" | ||
| - "4095" | ||
| - "0" | ||
| - "072" | ||
| assertions: | ||
| stderr: | ||
| - Input number \(.*\) is valid | ||
| - name: invalid_numbers | ||
| inputs: | ||
| number: | ||
| - "0x1000" | ||
| - "" | ||
| - string | ||
| - this is not a number | ||
| - "000000000011" | ||
| - "-1" | ||
| - "08" | ||
| assertions: | ||
| exit_code: 42 | ||
| stderr: | ||
| - Input number \(.*\) is invalid | ||
| - name: too_big_decimal_fails | ||
| inputs: | ||
| number: | ||
| - "4096" | ||
| - "9999" | ||
| assertions: | ||
| exit_code: 42 | ||
| stderr: | ||
| - Input number \(.*\) interpreted as decimal | ||
| - But number must be less than 4096! | ||
| validate_flag_filter: | ||
| - name: valid_FlagFilter_passes | ||
| inputs: | ||
| flags: | ||
| - include_if_all: "3" | ||
| exclude_if_any: "0xF04" | ||
| include_if_any: "03" | ||
| exclude_if_all: "4095" | ||
| - name: invalid_FlagFilter_fails | ||
| inputs: | ||
| flags: | ||
| - include_if_all: "3" | ||
| exclude_if_any: "0xF04" | ||
| include_if_any: "03" | ||
| exclude_if_all: "" # empty string should trigger a fail | ||
| assertions: | ||
| should_fail: true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.