Integration Test BDC3 #20126
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: Integration Test BDC3 | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: "*/30 * * * *" | |
jobs: | |
staging__basic_submission: | |
if: github.ref != 'refs/heads/prod' | |
runs-on: ubuntu-latest | |
environment: staging | |
env: | |
GOOGLE_PROJECT_NAME: firecloud-cgl | |
WORKSPACE_NAME: terra-notebook-utils-tests | |
GOOGLE_PROJECT_ID: drs-billing-project | |
BDCAT_STAGE: staging | |
TERRA_DEPLOYMENT_ENV: staging | |
TEST_MULE_CREDS: ${{ secrets.TEST_MULE_CREDS }} | |
TERRA_WEBHOOK: ${{ secrets.TERRA_SLACK_WEBHOOK }} | |
GEN3_API_KEY: ${{ secrets.GEN3_API_KEY }} | |
BDCAT_SB_BROKER_TOKEN: ${{ secrets.BDCAT_SB_BROKER_TOKEN }} | |
ENCODED_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }} | |
DRS_RESOLVER_ENDPOINT: api/v4/drs/resolve | |
WORKSPACE_BUCKET: gs:// | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt update | |
sudo apt install python3.10 | |
sudo apt-get install -y python3-venv | |
python3 -m venv ./venv | |
source ./venv/bin/activate | |
pip install -r requirements.txt | |
- name: Lint | |
run: | | |
source environment | |
make lint | |
- name: Decode credentials | |
run: echo '${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }}' > gcp-creds.json | |
- name: Run basic submission test | |
run: | | |
timeout -s SIGINT 115m ./venv/bin/python -m test.terra.test_terra | |
staging__version_check: | |
if: github.ref != 'refs/heads/prod' | |
environment: staging | |
runs-on: ubuntu-latest | |
env: | |
GOOGLE_PROJECT_NAME: firecloud-cgl | |
WORKSPACE_NAME: terra-notebook-utils-tests | |
GOOGLE_PROJECT_ID: drs-billing-project | |
BDCAT_STAGE: staging | |
TERRA_DEPLOYMENT_ENV: alpha | |
ENCODED_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-venv | |
python3 -m venv ./venv | |
source ./venv/bin/activate | |
pip install -r requirements.txt | |
- name: Lint | |
run: | | |
source environment | |
make lint | |
- name: Decode credentials | |
run: echo -n "${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }}" > gcp-creds.json | |
- name: Run version check test | |
run: ./venv/bin/python -m test.gen3.test_version_check | |
# - name: Post to Slack | |
# run: ./venv/bin/python scripts/post_to_slack.py | |
prod__basic_submission: | |
if: github.ref == 'refs/heads/prod' | |
runs-on: ubuntu-latest | |
environment: prod | |
env: | |
GOOGLE_PROJECT_NAME: firecloud-cgl | |
WORKSPACE_NAME: terra-notebook-utils-tests | |
GOOGLE_PROJECT_ID: drs-billing-project | |
BDCAT_STAGE: prod | |
TEST_MULE_CREDS: ${{ secrets.TEST_MULE_CREDS }} | |
GEN3_API_KEY: ${{ secrets.GEN3_API_KEY }} | |
ENCODED_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }} | |
DRS_RESOLVER_ENDPOINT: api/v4/drs/resolve | |
WORKSPACE_BUCKET: gs:// | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt update | |
sudo apt install python3.10 | |
sudo apt-get install -y python3-venv | |
python3 -m venv ./venv | |
source ./venv/bin/activate | |
pip install -r requirements.txt | |
- name: Lint | |
run: | | |
source environment | |
make lint | |
- name: Decode credentials | |
run: echo '${{ secrets.ENCODED_GOOGLE_APPLICATION_CREDENTIALS }}' > gcp-creds.json | |
- name: Run basic submission test | |
run: | | |
timeout -s SIGINT 115m ./venv/bin/python -m test.terra.test_terra |