Add test-image job to build workflow #1135
Workflow file for this run
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: "Build" | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
release: | |
types: | |
- edited | |
- published | |
schedule: | |
- cron: '0 10 * * *' # everyday at 10am | |
workflow_dispatch: | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
diagnostics: | |
name: "Diagnostics" | |
uses: ./.github/workflows/diagnostics.yml | |
config: | |
name: "Config" | |
uses: ./.github/workflows/_config.yml | |
metadata: | |
name: "Metadata" | |
needs: [config] | |
uses: ./.github/workflows/docker-metadata.yml | |
with: | |
image_name: ${{ needs.config.outputs.image_name }} | |
lint: | |
name: "Lint" | |
needs: | |
- config | |
uses: ./.github/workflows/common-lint.yml | |
build-image-for-testing: | |
name: "Build image for testing" | |
needs: | |
- config | |
- lint | |
- metadata | |
uses: ./.github/workflows/docker-build-image.yml | |
with: | |
artifact_name: ${{ needs.config.outputs.image_archive_artifact_name }} | |
cache_from_scopes: ${{ needs.config.outputs.test_platform }} | |
cache_to_scope: ${{ needs.config.outputs.test_platform }} | |
image_archive_name_stem: ${{ needs.config.outputs.test_platform }} | |
image_labels: ${{ needs.metadata.outputs.image_labels }} | |
platforms: ${{ needs.config.outputs.test_platform }} | |
test-image: | |
name: "Test image" | |
needs: | |
- build-image-for-testing | |
- config | |
uses: ./.github/workflows/docker-pytest-image.yml | |
with: | |
data_artifact_name: ${{ needs.config.outputs.data_artifact_name }} | |
data_artifact_path: ${{ needs.config.outputs.data_artifact_path }} | |
image_artifact_name: ${{ needs.config.outputs.image_archive_artifact_name }} | |
image_archive_name: ${{ needs.build-image-for-testing.outputs.image_archive_name }} |