Skip to content

Commit

Permalink
Merge pull request #763 from fractal-analytics-platform/757-test-json…
Browse files Browse the repository at this point in the history
…-schema-generation-on-multiple-packages

Add manifest-building GHA
  • Loading branch information
tcompa authored Jun 17, 2024
2 parents 45c7998 + d9147d1 commit f8f5c6e
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/manifest_external_packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Manifest creation (external packages)

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 23 * * 3"


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]
manifest_path: [skip]
cmd_install: [skip]
cmd_create_manifest: [skip]

include:

- package: scMultipleX
github_repo: fmi-basel/gliberal-scMultipleX
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'

- package: fractal-helper-tasks
github_repo: jluethi/fractal-helper-tasks
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'

- package: APx_fractal_task_collection
github_repo: Apricot-Therapeutics/APx_fractal_task_collection
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'

exclude:
- package: skip
github_repo: skip
manifest_path: skip
cmd_install: skip
cmd_create_manifest: 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 }}

- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'

- name: Install package
run: ${{ matrix.cmd_install }}

- name: Create manifest
run: ${{ matrix.cmd_create_manifest }}

- name: Run git diff for manifest
run: git diff ${{ matrix.manifest_path }}

- name: Check repo status
run: if [[ -z $(git status -s) ]]; then echo "Clean status"; else echo "Dirty status"; git status; exit 1; fi
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Documentation:
* Improve/extend page showing tasks from other packages (\#759).

* JSON Schema generation:
* Test manifest creation for three other tasks packages (\#763).

# 1.0.2

* Fix bug in plate metadata in MIP task (in the copy_ome_zarr_hcs_plate init function) (\#736).
Expand Down

0 comments on commit f8f5c6e

Please sign in to comment.