-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
19 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,14 @@ | ||
name: build-and-publish-dev | ||
name: Build and Publish Dev Images | ||
on: | ||
push: | ||
branches-ignore: [master, main] | ||
jobs: | ||
main-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Fetch tag history | ||
run: git fetch --tags | ||
- uses: google-github-actions/[email protected] | ||
name: Setup gcloud for Dataflow tests | ||
with: | ||
project_id: ${{ secrets.DEV_PROJECT_ID }} | ||
service_account_key: ${{ secrets.GCP_TEST_KEY }} | ||
export_default_credentials: true | ||
- name: Set up Python 3.9 for dataflow tests | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.16 | ||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
version: 1.1.9 | ||
- name: Restore cache dependencies | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-poetry-v2 | ||
with: | ||
path: ~/.cache/pypoetry | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./orchestration/pyproject.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: poetry install | ||
working-directory: ${{ github.workspace }}/orchestration | ||
- uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Check Scala formatting | ||
run: sbt scalafmtCheckAll | ||
- name: Scala Compile | ||
run: sbt Compile/compile Test/compile IntegrationTest/compile | ||
- name: Scala Test | ||
run: sbt "set ThisBuild/coverageEnabled := true" test IntegrationTest/test coverageAggregate | ||
- name: Run E2E test suite | ||
run: poetry run pytest -v -m e2e | ||
working-directory: ${{ github.workspace }}/orchestration | ||
- name: Publish Scala coverage | ||
uses: codecov/codecov-action@v1 | ||
- uses: google-github-actions/[email protected] | ||
name: Setup gcloud for pushing Docker images | ||
with: | ||
|
@@ -58,6 +17,9 @@ jobs: | |
export_default_credentials: true | ||
- name: Setup GCR auth | ||
run: gcloud auth configure-docker --quiet us.gcr.io,us-east4-docker.pkg.dev | ||
- uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Push Scala Dataflow Docker image | ||
run: sbt publish | ||
- name: Get artifact slug | ||
|
@@ -75,4 +37,3 @@ jobs: | |
context: . | ||
push: true | ||
tags: us-east4-docker.pkg.dev/broad-dsp-monster-hca-dev/monster-dev-env/hca_ingest_compose_dev_env:${{steps.get-artifact-slug.outputs.slug}}, us-east4-docker.pkg.dev/broad-dsp-monster-hca-dev/monster-dev-env/hca_ingest_compose_dev_env:dev | ||
|
9 changes: 5 additions & 4 deletions
9
...hub/workflows/build-and-publish-main.yaml → ...hub/workflows/build_and_publish_main.yaml
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
3 changes: 2 additions & 1 deletion
3
.github/workflows/validate-pull-request.yaml → ...workflows/validate_pull_request_main.yaml
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ dagster_home/ | |
venv/ | ||
# Build files | ||
build/ | ||
# Test files | ||
*_manifest.csv |
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