Skip to content

Commit

Permalink
combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 27, 2024
1 parent c989bb6 commit 34dde70
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/run_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name: Build images and run tests
on:
push:
branches:
- build_docker_images_and_run_tests_*
- build_images_and_run_tests_*

jobs:
build-push-image:
uses: ./.github/workflows/build-push-image.yml
with:
region: us-central1
dockerfile_path: ./containers/pytorch/training/gpu/2.1/transformers/4.37.2/py310/Dockerfile
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.37.2.py310:latest
dockerfile_path: ./containers/pytorch/training/gpu/2.1/transformers/4.38.1/py310/Dockerfile
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.38.1.py310:latest
gcp_artifact_registry_repository: deep-learning-images
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
secrets:
GCP_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}

model_test:
needs: build-push-image
uses: ./.github/workflows/test_model.yml
with:
region: us-central1
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.37.2.py310:latest
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.38.1.py310:latest
gcp_artifact_registry_repository: deep-learning-images
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
secrets:
Expand Down

0 comments on commit 34dde70

Please sign in to comment.