Bioimage.io CI #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bioimage.io CI | |
concurrency: | |
group: test-resources | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/bioimageio_ci.yml | |
inputs: | |
pending_matrix: | |
description: 'json encoded gh matrix of pending validations for new or updated resources (default: test on all resources)' | |
required: true | |
default: '{"include": [{"resource_id": "**", "version_id": "**"}]}' | |
type: string | |
workflow_dispatch: | |
inputs: | |
pending_matrix: | |
description: 'json encoded gh matrix of pending validations for new or updated resources (default: test on all resources)' | |
required: true | |
default: '{"include": [{"resource_id": "**", "version_id": "**"}]}' | |
type: string | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v3 | |
with: | |
repository: bioimage-io/collection-bioimage-io | |
ref: gh-pages | |
path: bioimageio-gh-pages | |
- name: Print GitHub Event Context | |
run: echo "${{ toJson(github.event) }}" | |
- name: Print pending_matrix | |
run: echo "Pending Matrix ${{ github.event.inputs.pending_matrix }}" | |
- name: Setup Maven Action | |
uses: stCarolas/[email protected] | |
with: | |
java-version: 11 | |
maven-version: 3.9.5 | |
- name: Build with Maven | |
run: mvn clean install | |
- name: Generate Classpath (Unix) | |
run: echo "CLASSPATH=$(mvn -q exec:exec -Dexec.executable=echo -Dexec.args='%classpath'):target/classes" >> $GITHUB_ENV | |
- name: test with JDLL(Unix) | |
run: java -cp $CLASSPATH io.bioimage.modelrunner.ci.ContinuousIntegration | |
- name: Upload test summaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 0.5.5-SNAPSHOT | |
path: test_summaries | |
retention-days: 1 | |
deploy: | |
needs: [run] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
- name: merge JDLL test summaries # (they differ by postfix) | |
run: | | |
mkdir test_summaries | |
cp -r artifacts/*/* test_summaries | |
- name: Deploy test summaries to gh-pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
clean: false | |
branch: gh-pages | |
folder: test_summaries |