Skip to content

Commit 03132f9

Browse files
DriesSchaumontgithub-actions[bot]
authored andcommitted
deploy: 559e5f7
1 parent b79935a commit 03132f9

File tree

1,561 files changed

+72890
-65346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,561 files changed

+72890
-65346
lines changed

.github/workflows/create-documentation-pr.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
path: openpipelines
2323

24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
with:
2626
repository: openpipelines-bio/website
2727
path: website
@@ -35,32 +35,31 @@ jobs:
3535
INPUT_TAG="${{ github.event.inputs.version_tag }}"
3636
TAG_OR_BRANCH_NAME=${INPUT_TAG:-"${{ github.ref_name }}"}
3737
echo "tag=$TAG_OR_BRANCH_NAME" >> $GITHUB_OUTPUT
38-
39-
- name: Remove previous results
40-
run: |
41-
rm -rf website/components
4238
4339
- uses: viash-io/viash-actions/pro/generate-documentation-qmd@v6
4440
with:
4541
project_directory: openpipelines
42+
src: src
4643
query: '^(?!workflows|test_workflows)'
4744
output_dir: ../website/components/modules/
4845
dest_path: "{namespace}/{name}.qmd"
4946
viash_pro_token: ${{ secrets.GTHB_PAT }}
5047
tools_version: main_build
5148
ref: "${{ steps.get_tag.outputs.tag }}"
52-
clean: false
49+
clean: true
50+
5351

5452
- uses: viash-io/viash-actions/pro/generate-documentation-qmd@v6
5553
with:
5654
project_directory: openpipelines
55+
src: src
5756
query: '^workflows'
5857
output_dir: ../website/components/
5958
dest_path: "{namespace}/{name}.qmd"
6059
viash_pro_token: ${{ secrets.GTHB_PAT }}
6160
tools_version: main_build
6261
ref: "${{ steps.get_tag.outputs.tag }}"
63-
clean: false
62+
clean: true
6463

6564
- name: Create Pull Request
6665
env:

.github/workflows/integration-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
dest_paths: ${{ steps.cache.outputs.dest_paths }}
3737

3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v5
4040
with:
4141
fetch-depth: 0
4242

@@ -55,7 +55,7 @@ jobs:
5555
component: ${{ fromJson(needs.build.outputs.workflow_matrix) }}
5656

5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@v5
5959
with:
6060
fetch-depth: 0
6161

@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
git config --global core.symlinks true
6868
69-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@v5
7070
with:
7171
ref: 'integration_build'
7272

@@ -124,7 +124,7 @@ jobs:
124124
# check if stub runs work
125125
export NXF_VER=22.04.5
126126
nextflow run . \
127-
-main-script "target/nextflow/${{matrix.component.namespace}}/${{matrix.component.name}}/main.nf" \
127+
-main-script "target/${{ matrix.component.scope == 'private' && '_private/' || '' }}nextflow/${{matrix.component.namespace}}/${{matrix.component.name}}/main.nf" \
128128
-stub -profile no_publish \
129129
-c src/workflows/utils/integration_tests.config
130130

.github/workflows/main-build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
echo "checkout_branch=$DEPLOY_BRANCH" >> "$GITHUB_OUTPUT"
122122
fi
123123
124-
- uses: actions/checkout@v4
124+
- uses: actions/checkout@v5
125125
with:
126126
ref: ${{ steps.get_checkout_branch.outputs.checkout_branch }}
127127
fetch-depth: 0
@@ -151,7 +151,11 @@ jobs:
151151
config_mod: .version := "${{ inputs.version || format('{0}_build', github.ref_name) }}"
152152
parallel: true
153153
query: ^workflows
154-
154+
155+
- name: "Remove test component and workflows from the target folder"
156+
run: |
157+
rm -r target/_test
158+
155159
- name: Build nextflow schemas
156160
uses: viash-io/viash-actions/pro/build-nextflow-schemas@v6
157161
with:
@@ -168,7 +172,7 @@ jobs:
168172
tools_version: 'main_build'
169173

170174
- name: Deploy to target branch
171-
uses: stefanzweifel/git-auto-commit-action@v5
175+
uses: stefanzweifel/git-auto-commit-action@v6
172176
with:
173177
create_branch: true
174178
commit_message: "deploy: ${{github.sha}}"
@@ -195,7 +199,7 @@ jobs:
195199
- name: "Parse JSON output from 'viash ns list' as input for matrix."
196200
id: set_matrix
197201
run: |
198-
echo "components=$(jq -c '[ .[] |
202+
echo "components=$(jq -c '[ .[] | select(.scope.target != "test") |
199203
{
200204
"name": .name,
201205
"namespace_separator": .engines | map(select(.type == "docker"))[0].namespace_separator,
@@ -205,13 +209,14 @@ jobs:
205209
}
206210
] | unique' ${{ steps.ns_list.outputs.output_file }} )" >> $GITHUB_OUTPUT
207211
208-
echo "workflows=$(jq -c '[ .[] | . as $config | (.test_resources // [])[] | select(.type == "nextflow_script", .entrypoint) |
212+
echo "workflows=$(jq -c '[ .[] | select(.scope.target != "test") | . as $config | (.test_resources // [])[] | select(.type == "nextflow_script", .entrypoint) |
209213
{
210214
"name": $config.name,
211215
"namespace": $config.namespace,
212216
"main_script": (($config.build_info.config | capture("^(?<dir>.*\/)").dir) + "/" + .path),
213217
"entry": .entrypoint,
214-
"config": $config.build_info.config
218+
"config": $config.build_info.config,
219+
"scope": $config.scope.target
215220
}
216221
] | unique' ${{ steps.ns_list_workflows.outputs.output_file }} )" >> $GITHUB_OUTPUT
217222
@@ -233,7 +238,7 @@ jobs:
233238
# Remove unnecessary files to free up space. Otherwise, we get 'no space left on device.'
234239
- uses: data-intuitive/reclaim-the-bytes@v2
235240

236-
- uses: actions/checkout@v4
241+
- uses: actions/checkout@v5
237242

238243
- uses: viash-io/viash-actions/setup@v6
239244

.github/workflows/release-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
dest_paths: ${{ steps.cache.outputs.dest_paths }}
3030

3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v5
3333
with:
3434
fetch-depth: 0
3535
- uses: viash-io/viash-actions/project/sync-and-cache@v6
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
git config --global core.symlinks true
5656
57-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@v5
5858
with:
5959
ref: 'release'
6060

@@ -112,7 +112,7 @@ jobs:
112112
# check if stub runs work
113113
export NXF_VER=22.04.5
114114
nextflow run . \
115-
-main-script "target/nextflow/${{matrix.component.namespace}}/${{matrix.component.name}}/main.nf" \
115+
-main-script "target/${{ matrix.component.scope == 'private' && '_private/' || '' }}nextflow/${{matrix.component.namespace}}/${{matrix.component.name}}/main.nf" \
116116
-stub -profile no_publish \
117117
-c src/workflows/utils/integration_tests.config
118118
@@ -141,7 +141,7 @@ jobs:
141141
# Remove unnecessary files to free up space. Otherwise, we get 'no space left on device.'
142142
- uses: data-intuitive/reclaim-the-bytes@v2
143143

144-
- uses: actions/checkout@v4
144+
- uses: actions/checkout@v5
145145

146146
- uses: viash-io/viash-actions/setup@v6
147147

.github/workflows/viash-test.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0
2020
- name: Install Python
2121
uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.12"
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install ruff
28-
- name: Run Ruff
29-
run: ruff check --output-format=github .
30-
3122
- uses: r-lib/actions/setup-r@v2
3223
with:
3324
use-public-rspm: true
34-
35-
- uses: r-lib/actions/setup-r-dependencies@v2
36-
with:
37-
packages: any::lintr, any::styler, any::roxygen2
38-
needs: lint, styler
39-
40-
- name: Lint
41-
run: lintr::lint_dir(path = ".")
42-
shell: Rscript {0}
43-
env:
44-
LINTR_ERROR_ON_LINT: true
45-
46-
- name: Style
47-
run: styler::style_dir(dry = "off")
48-
shell: Rscript {0}
49-
25+
- run: python -m pip install pre-commit
26+
shell: bash
27+
- run: python -m pip freeze --local
28+
shell: bash
29+
- run: pre-commit run --show-diff-on-failure --color=always --all-files
30+
shell: bash
31+
5032

5133
# phase 1
5234
list:
@@ -60,7 +42,7 @@ jobs:
6042
dest_paths: ${{ steps.cache.outputs.dest_paths }}
6143

6244
steps:
63-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
6446
with:
6547
fetch-depth: 0
6648

@@ -105,7 +87,7 @@ jobs:
10587
# Remove unnecessary files to free up space. Otherwise, we get 'no space left on device.'
10688
- uses: data-intuitive/reclaim-the-bytes@v2
10789

108-
- uses: actions/checkout@v4
90+
- uses: actions/checkout@v5
10991

11092
- uses: viash-io/viash-actions/setup@v6
11193
- uses: viash-io/viash-actions/project/update-docker-engine@v6

.lintr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclusions: list(
2+
"README.qmd"
3+
)

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
44
# Ruff version.
5-
rev: v0.8.1
5+
rev: v0.12.1
66
hooks:
7-
- id: ruff
7+
- id: ruff-check
8+
args: [ --fix ]
89
- id: ruff-format
910
- repo: local
1011
hooks:
@@ -18,6 +19,6 @@ repos:
1819
- styler
1920
- knitr
2021
- repo: https://github.com/lorenzwalthert/precommit
21-
rev: v0.4.3
22+
rev: v0.4.3.9012
2223
hooks:
2324
- id: lintr

0 commit comments

Comments
 (0)