-
Notifications
You must be signed in to change notification settings - Fork 2
98 lines (85 loc) · 2.88 KB
/
nf-core-pixelator-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#schema: https://github.com/softprops/github-actions-schemas/blob/master/workflow.json
name: "nf-core/pixelator integration tests"
on:
workflow_dispatch:
env:
ANNOY_COMPILER_ARGS: "-DANNOYLIB_MULTITHREADED_BUILD,-mno-avx512f"
jobs:
pre_job:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
paths_result: ${{ steps.skip_check.outputs.paths_result }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
if: ${{ !github.event.act }}
with:
concurrent_skipping: "same_content_newer"
skip_after_successful_duplicate: "true"
do_not_skip: '["workflow_dispatch"]'
paths_filter: |
pixelator:
paths:
- 'pyproject.toml'
- 'poetry.lock'
- 'src/pixelator/**'
- '**/Taskfile.yml'
- '.github/**'
paths_ignore:
- 'tests/**'
test:
name: Test default profile
if: github.event.act || needs.pre_job.outputs.should_skip == '{}' || !fromJSON(needs.pre_job.outputs.paths_result).pixelator.should_skip
runs-on: ubuntu-latest
needs: [pre_job]
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout pixelator
uses: actions/checkout@v4
- name: Checkout nf-core-pixelator
uses: actions/checkout@v4
with:
repository: PixelgenTechnologies/nf-core-pixelator
ref: pixelator-next
path: nf-core-pixelator
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '21'
- uses: nf-core/setup-nextflow@v1
with:
version: "latest-stable"
- name: Get Date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Conda env
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{ env.CACHE_NUMBER }}--${{ hashFiles('environment.yml') }}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
id: cache-conda
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: pixelator
miniforge-version: latest
channels: conda-forge,bioconda,defaults
use-mamba: true
environment-file: environment.yml
- name: Install pixelator
run: pip install -e .
- name: Run nf-core/pixelator default profile with current pixelator
env:
PIPELINE_BRANCH: pixelator-next
PIPELINE_SOURCE_DIR: ./nf-core-pixelator
run: |
task test-nf-core-pixelator