Skip to content

Commit

Permalink
Merge pull request #2700 from mashehu/fix-logo-links
Browse files Browse the repository at this point in the history
Fix logo links [skip changelog]
  • Loading branch information
mashehu committed Jan 29, 2024
2 parents 8a7502a + 6bde19b commit 3588841
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/create-lint-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:
inputs:
runners:
description: "Runners to test on"
type: choice
options:
- "ubuntu-latest"
- "self-hosted"
default: "self-hosted"

# Cancel if a newer run is started
concurrency:
Expand All @@ -17,7 +26,7 @@ env:

jobs:
MakeTestWorkflow:
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
env:
NXF_ANSI_LOG: false
strategy:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/create-test-lint-wf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:
inputs:
runners:
description: "Runners to test on"
type: choice
options:
- "ubuntu-latest"
- "self-hosted"
default: "self-hosted"

# Cancel if a newer run is started
concurrency:
Expand All @@ -29,7 +38,8 @@ jobs:
- "template_skip_github_badges.yml"
- "template_skip_igenomes.yml"
- "template_skip_ci.yml"
runner: ["self-hosted"]
runner:
- ${{ github.event.inputs.runners || 'self-hosted' }}
profile: ["self_hosted_runner"]
include:
- TEMPLATE: "template_skip_all.yml"
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/create-test-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:
inputs:
runners:
description: "Runners to test on"
type: choice
options:
- "ubuntu-latest"
- "self-hosted"
default: "self-hosted"

# Cancel if a newer run is started
concurrency:
Expand All @@ -17,7 +26,7 @@ env:

jobs:
RunTestWorkflow:
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
env:
NXF_ANSI_LOG: false
strategy:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
runners:
description: "Runners to test on"
type: choice
options:
- "ubuntu-latest"
- "self-hosted"
default: "self-hosted"

# Cancel if a newer run with the same workflow name is queued
concurrency:
Expand Down Expand Up @@ -64,7 +72,7 @@ jobs:
name: Run ${{matrix.test}} with Python ${{ needs.setup.outputs.python-version }} on ${{ needs.setup.outputs.runner }}
needs: [setup, list_tests]
if: ${{ needs.setup.outputs.run-tests }}
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
strategy:
matrix: ${{ fromJson(needs.list_tests.outputs.tests) }}
fail-fast: false # run all tests even if one fails
Expand Down Expand Up @@ -154,7 +162,7 @@ jobs:

coverage:
needs: test
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
steps:
- name: go to subdirectory
run: |
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on:
type: boolean
description: Only run on nf-core/testpipeline?
required: true
runners:
description: "Runners to test on"
type: choice
options:
- "ubuntu-latest"
- "self-hosted"
default: "self-hosted"

# Cancel if a newer run is started
concurrency:
Expand All @@ -16,7 +23,7 @@ concurrency:

jobs:
get-pipelines:
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -31,7 +38,7 @@ jobs:
sync:
needs: get-pipelines
runs-on: self-hosted
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
strategy:
matrix: ${{fromJson(needs.get-pipelines.outputs.matrix)}}
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions nf_core/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def create_param_dict(self, name, description, author, version, template_yaml_pa
param_dict["name_noslash"] = param_dict["name"].replace("/", "-")
param_dict["prefix_nodash"] = param_dict["prefix"].replace("-", "")
param_dict["name_docker"] = param_dict["name"].replace(param_dict["prefix"], param_dict["prefix_nodash"])
param_dict["logo_light"] = f"{param_dict['short_name']}_logo_light.png"
param_dict["logo_dark"] = f"{param_dict['short_name']}_logo_dark.png"
param_dict["logo_light"] = f"nf-core-{param_dict['short_name']}_logo_light.png"
param_dict["logo_dark"] = f"nf-core-{param_dict['short_name']}_logo_dark.png"
param_dict["version"] = version

if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
download:
runs-on: ["self-hosted"]
runs-on: ubuntu-latest
steps:
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
Expand Down

0 comments on commit 3588841

Please sign in to comment.