-
Notifications
You must be signed in to change notification settings - Fork 6
114 lines (87 loc) · 3.64 KB
/
manifest_external_packages.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Manifest creation (external packages)
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 23 * * 2,3,4"
jobs:
test-manifest-creation:
runs-on: ubuntu-22.04
strategy:
fail-fast: false # Do not make the whole matrix fail if one element fails
matrix:
package: [skip]
github_repo: [skip]
github_branch: [skip]
manifest_path: [skip]
cmd_install: [skip]
cmd_create_manifest: [skip]
custom_dependencies: [skip]
include:
- package: scMultipleX
github_repo: fmi-basel/gliberal-scMultipleX
github_branch: main
manifest_path: src/scmultiplex/__FRACTAL_MANIFEST__.json
cmd_install: 'python -m pip install -e .[fractal-tasks]'
cmd_create_manifest: 'python src/scmultiplex/dev/create_manifest.py'
custom_dependencies: 'image_registration'
- package: fractal-helper-tasks
github_repo: jluethi/fractal-helper-tasks
github_branch: main
manifest_path: src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json
cmd_install: 'python -m pip install -e .'
cmd_create_manifest: 'python src/fractal_helper_tasks/dev/create_manifest.py'
custom_dependencies: ''
- package: APx_fractal_task_collection
github_repo: Apricot-Therapeutics/APx_fractal_task_collection
github_branch: main
manifest_path: src/apx_fractal_task_collection/__FRACTAL_MANIFEST__.json
cmd_install: 'python -m pip install -e .'
cmd_create_manifest: 'python src/apx_fractal_task_collection/dev/update_manifest.py'
custom_dependencies: ''
exclude:
- package: skip
github_repo: skip
github_branch: skip
manifest_path: skip
cmd_install: skip
cmd_create_manifest: skip
custom_dependencies: skip
steps:
- name: Print matrix-element information
run: echo '${{ matrix.package }}, ${{ matrix.github_repo }}, ${{ matrix.cmd_install }}, ${{ matrix.cmd_create_manifest }}, ${{ matrix.manifest_path }}'
- name: Get package source code
uses: actions/checkout@v4
with:
repository: ${{ matrix.github_repo }}
ref: ${{ matrix.github_branch }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install package
run: ${{ matrix.cmd_install }}
- name: Get current branch of `fractal-tasks-core`
uses: actions/checkout@v4
with:
path: fractal-tasks-core
- name: Install current fractal-tasks-core (this may fail)
run: python -m pip install -e ./fractal-tasks-core
- name: Install custom additional dependencies (see issue 803)
if: ${{ matrix.custom_dependencies != '' }}
run: python -m pip install ${{ matrix.custom_dependencies }}
- name: Create manifest
run: ${{ matrix.cmd_create_manifest }}
- name: Setup friendly diff style
run: echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
- name: Run git diff for manifest
run: git diff ${{ matrix.manifest_path }}
- name: Clean up before checking repo status
run: rm -rf fractal-tasks-core .gitattributes
- name: Check repo status
run: if [[ -z $(git status -s) ]]; then echo "Clean status"; else echo "Dirty status"; git status; exit 1; fi