Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/create-lint-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
MakeTestWorkflow:
runs-on: ubuntu-latest
runs-on: self-hosted
env:
NXF_ANSI_LOG: false
strategy:
Expand Down Expand Up @@ -49,6 +49,8 @@ jobs:

# Install the Prettier linting tools
- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Prettier
run: npm install -g prettier
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create-test-lint-wf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
RunTestWorkflow:
runs-on: ubuntu-latest
runs-on: self-hosted
env:
NXF_ANSI_LOG: false
strategy:
Expand Down Expand Up @@ -52,6 +52,8 @@ jobs:

# Install the Prettier linting tools
- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Prettier
run: npm install -g prettier
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/create-test-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:

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

jobs:
RunTestWorkflow:
runs-on: ubuntu-latest
runs-on: self-hosted
env:
NXF_ANSI_LOG: false
strategy:
Expand All @@ -31,6 +32,8 @@ jobs:

- name: Set up Python 3.11
uses: actions/setup-python@v4
env:
AGENT_TOOLSDIRECTORY: ${{ runner.tool_cache }}
with:
python-version: 3.11

Expand All @@ -46,12 +49,14 @@ jobs:

- name: Run nf-core/tools
run: |
nf-core --log-file log.txt create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface" --plain
nextflow run nf-core-testpipeline -profile test,docker --outdir ./results
echo "docker.userEmulation = false" > aws_docker.config
echo "docker.fixOwnership = true" >> aws_docker.config
nf-core --verbose --log-file log.txt create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface" --plain
nextflow run nf-core-testpipeline -profile test,docker -c aws_docker.config --outdir ./results

- name: Upload log file artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: nf-core-log-file
path: log.txt
path: .nextflow.log
5 changes: 4 additions & 1 deletion .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
contains(github.event.comment.html_url, '/pull/') &&
contains(github.event.comment.body, '@nf-core-bot fix linting') &&
github.repository == 'nf-core/tools'
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
# Use the @nf-core-bot token to check out so we can push later
- uses: actions/checkout@v3
Expand All @@ -25,6 +25,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
Expand All @@ -42,6 +44,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: python-isort
uses: isort/[email protected]
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ concurrency:

jobs:
EditorConfig:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
Expand All @@ -28,11 +30,13 @@ jobs:
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v 'test\|.py\|md\|json\|yml\|yaml\|html\|css\|Makefile')

Prettier:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Prettier
run: npm install -g prettier
Expand All @@ -41,7 +45,7 @@ jobs:
run: prettier --check ${GITHUB_WORKSPACE}

PythonBlack:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -71,7 +75,7 @@ jobs:
allow-repeats: false

isort:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Check out source-code repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.11"]
runner: ["ubuntu-latest"]
runner: ["self-hosted"]
include:
- runner: "ubuntu-20.04"
python-version: "3.8"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
get-pipelines:
runs-on: ubuntu-latest
runs-on: self-hosted
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -31,7 +31,7 @@ jobs:

sync:
needs: get-pipelines
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix: ${{fromJson(needs.get-pipelines.outputs.matrix)}}
fail-fast: false
Expand Down