-
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
base: main
Are you sure you want to change the base?
Changes from all commits
3285664
7bc1e3a
cdb13f7
6438780
62744f2
a9cc715
e09621c
75b39f7
0be911a
374392a
d89fd65
81d9608
5d97f28
1b7235d
881fa7a
d2898f0
6c910ce
64476ad
c76f201
2fb9d23
d1e0d99
51ad295
2b7d0dd
b3b9c27
038909d
77271b3
5ed0866
8a186b6
52da94c
da5d286
8658e21
2758659
c5c9944
1089835
5b69042
b1f9d8f
2805d4c
c958f35
4a7fa73
90573e0
79aa181
74e0dbf
21bc68f
7c46ddb
0e4f7a8
4f3db73
08d5a59
c39480b
21a7752
a7b661d
6842420
b974e4e
04324b9
0fda8e4
65cfbb8
e6bdb41
b2c7fe2
90f011f
08aca48
edfbaf7
ac53096
a044b1c
9290baa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,12 +3,17 @@ name: Workflows Sprocket Lint | |||||
| on: [push] | ||||||
|
|
||||||
| jobs: | ||||||
| sprocket_lint: | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v2 | ||||||
| - name: Run sprocket | ||||||
| uses: stjude-rust-labs/sprocket-action@main | ||||||
| with: | ||||||
| lint: true | ||||||
| except: KnownRules | ||||||
| sprocket_lint: | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're doing
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or maybe lengthen to |
||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v2 | ||||||
| - name: Run 'sprocket lint' | ||||||
| uses: stjude-rust-labs/sprocket-action@main | ||||||
| with: | ||||||
| lint: true | ||||||
| except: KnownRules | ||||||
| ignore-patterns: methylation | ||||||
| - name: Run 'sprocket format' | ||||||
| uses: stjude-rust-labs/sprocket-action@main | ||||||
| with: | ||||||
| action: format | ||||||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| read_group_to_string: | ||
| - name: valid_read_groups | ||
| inputs: | ||
| read_group: | ||
| - ID: R1 | ||
| SM: sampleFoo | ||
| - ID: R1 | ||
| SM: sampleFoo | ||
| LB: spaces are allowed in LB | ||
| BC: barcode with a space | ||
| PU: platform_unit | ||
| PL: ILLUMINA | ||
| CN: center_name | ||
| DT: date | ||
| DS: description | ||
| PI: 1 | ||
| PG: program_group | ||
| PM: platform_model | ||
| FO: ACMG | ||
| KS: key_sequence | ||
| assertions: | ||
| outputs: | ||
| validated_read_group: | ||
| - Contains: R1 | ||
| - Contains: sampleFoo | ||
| - name: id_with_spaces | ||
| inputs: | ||
| read_group: | ||
| - ID: ids should not have spaces # this is a problem | ||
| SM: sample_a | ||
| LB: library | ||
| BC: barcode | ||
| PU: platform_unit | ||
| PL: ILLUMINA | ||
| CN: center_name | ||
| DT: date | ||
| DS: description | ||
| PI: 1 | ||
| PG: program_group | ||
| PM: platform_model | ||
| FO: ACMG | ||
| KS: key_sequence | ||
| assertions: | ||
| should_fail: true | ||
| - name: sample_with_spaces | ||
| inputs: | ||
| read_group: | ||
| - ID: R123 | ||
| SM: samples should not have spaces | ||
| LB: library can have spaces though | ||
| BC: barcode | ||
| PU: platform_unit | ||
| PL: ILLUMINA | ||
| CN: center_name | ||
| DT: date | ||
| DS: description | ||
| PI: 1 | ||
| PG: program_group | ||
| PM: platform_model | ||
| FO: ACMG | ||
| KS: key_sequence | ||
| assertions: | ||
| should_fail: true | ||
| - name: spaces_allowed | ||
| inputs: | ||
| read_group: | ||
| - ID: technically permissable but gross | ||
| SM: same here! | ||
| restrictive: | ||
| - false | ||
| - name: missing_sample | ||
| inputs: | ||
| read_group: | ||
| - ID: R123 | ||
| LB: library | ||
| assertions: | ||
| should_fail: true | ||
| - name: missing_sample_allowed | ||
| inputs: | ||
| read_group: | ||
| - ID: R1 | ||
| LB: lib | ||
| required_fields: | ||
| - [] | ||
|
|
||
| get_read_groups: | ||
| - name: works | ||
| inputs: | ||
| bam: | ||
| - bams/test.bwa_aln_pe.chrY_chrM.bam | ||
| - bams/Aligned.sortedByCoord.chr9_chr22.bam | ||
| - bams/test_rnaseq_variant.bam | ||
| - bams/test.bam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't gotten further, but my assumption was that we'd call
sprocket dev testas the second part of this to test the newly built images.