Skip to content

Commit

Permalink
Switch to using called workflow to make build dependent on test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Oct 10, 2023
1 parent 5417672 commit 3ad4e18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/container_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:


jobs:
test:
uses: "./.github/workflows/test.yml"

# When a push to the default branch occurs, build and release "latest" images
# When a tag `vX.Y.Z` push occurs, build and release images with that tag

build-and-release-image:
name: "Build and release the data server container image"
needs:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "Test"

on:
push:
branches:
- "main"
# The tests will be run on the main branch as part of the container build workflow.
# push:
# branches:
# - "main"
pull_request:
# Enable running this workflow from the container build workflow:
workflow_call:


# Default to bash in login mode; key to activating conda environment
Expand Down

0 comments on commit 3ad4e18

Please sign in to comment.