Skip to content

Commit 611b992

Browse files
committed
fix formatting
1 parent d36144a commit 611b992

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ jobs:
3232
# Set the parameters to be used in the response
3333
repo=${{ github.event.client_payload.repo }}
3434
owner=${{ github.event.client_payload.owner }}
35+
ref=${{ github.event.client_payload.ref }}
36+
sha=${{ github.event.client_payload.sha }}
37+
number=${{ github.event.client_payload.number }}
3538
repo_name=${repo#"$owner"}
3639
repo_name=${repo_name#"/"}
37-
echo "client_repo="${{ github.event.client_payload.repo }} >> $GITHUB_ENV
40+
echo "client_repo="$repo >> $GITHUB_ENV
3841
echo "client_repo_name="$repo_name >> $GITHUB_ENV
39-
echo "client_owner="${{ github.event.client_payload.owner }} >> $GITHUB_ENV
40-
echo "client_ref="${{ github.event.client_payload.ref }} >> $GITHUB_ENV
41-
echo "client_sha="${{ github.event.client_payload.sha }} >> $GITHUB_ENV
42-
echo "client_number="${{ github.event.client_payload.number }} >> $GITHUB_ENV
43-
42+
echo "client_owner="$owner >> $GITHUB_ENV
43+
echo "client_ref="$ref >> $GITHUB_ENV
44+
echo "client_sha="$sha >> $GITHUB_ENV
45+
echo "client_number="$number >> $GITHUB_ENV
46+
4447
# Checkout the sha from the specified repository.
4548
# Only run the tests matching the specified repository.
4649
if [[ $repo =~ 'omero-ms-zarr' ]]; then
@@ -68,6 +71,7 @@ jobs:
6871
- name: Run pytest
6972
shell: bash -l {0}
7073
run: pytest -vxk "not omero"
74+
# yamllint disable rule:line-length
7175
- name: Notify job status
7276
if: always() && github.event.action == 'run_test_suite'
7377
uses: actions/github-script@v3

configure_test.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
import yaml
21
import sys
32

3+
import yaml
4+
45
# Change the value of the skip flag depending on the repository used
5-
# repository:
6-
#value = "bioformats2raw", "ome_zarr", "omero_ms_zarr"
6+
# repository:
7+
# value = "bioformats2raw", "ome_zarr", "omero_ms_zarr"
78
ref_value = "ome_zarr"
8-
def main(argv):
9+
10+
11+
def main() -> None:
12+
argv = sys.argv[1:]
913
value = argv[0]
10-
with open('sources.yml', 'r') as f:
14+
with open("sources.yml") as f:
1115
doc = yaml.safe_load(f)
1216
for k in doc:
13-
k['skip'] = True
14-
if 'script' in k:
15-
if k['script'].startswith(value):
16-
k['skip'] = False
17+
k["skip"] = True
18+
if "script" in k:
19+
if k["script"].startswith(value):
20+
k["skip"] = False
1721
else:
1822
if value == ref_value:
19-
k['skip'] = False
20-
23+
k["skip"] = False
2124

22-
with open('sources.yml', 'w') as f:
25+
with open("sources.yml", "w") as f:
2326
yaml.dump(doc, f, default_flow_style=False, sort_keys=False)
2427

28+
2529
if __name__ == "__main__":
26-
main(sys.argv[1:])
30+
main()

sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- name: idr6001240
4040
path: https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr
4141
skip: False
42-
42+
4343
- name: bf2rawraw
4444
script: bioformats2raw_fake
4545
args:

0 commit comments

Comments
 (0)