Skip to content

APPS-2766 DIY instructions for building Docker image #3262

APPS-2766 DIY instructions for building Docker image

APPS-2766 DIY instructions for building Docker image #3262

Workflow file for this run

name: WDL Integration Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
types:
- opened
- synchronize
- ready_for_review
- labeled
workflow_dispatch:
permissions:
contents: read
actions: write
packages: read
jobs:
test:
name: WDL Integration Tests (Staging)
if: contains(github.event.pull_request.labels.*.name, 'deprecated')
runs-on: ubuntu-20.04
env:
PROJECT: dxCompiler_playground
steps:
- name: Git checkout
uses: actions/checkout@v2
# performance optimizations https://abbbi.github.io/actions/
- uses: abbbi/github-actions-tune@v1
- name: Install java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install dxpy and other dependencies
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https wget git openssh-server tree python3 python3-pip python3-venv
cwltool=`jq -r '.execDepends.cwl[0].name' scripts/bundled_dependencies.json`
pip3 install --upgrade pip setuptools==58.3.0
pip3 install termcolor dxpy==0.323.0 $cwltool pyOpenSSL==22.0.0
# install dxda
dxda_version=`jq -r '.dxda' scripts/bundled_dependencies.json`
sudo wget -O/usr/local/bin/dx-download-agent https://github.com/dnanexus/dxda/releases/download/${dxda_version}/dx-download-agent-linux
sudo chmod +x /usr/local/bin/dx-download-agent
- name: Run integration tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ROBOT_TOKEN: ${{ secrets.DX_STAGING_ROBOT_TOKEN }}
TEST_ROBOT_TOKEN: ${{ secrets.DX_STAGING_TEST_ROBOT_TOKEN }}
run: |
export PATH="$PATH:$HOME/.local/bin"
# Set up DNAnexus staging environment
dx login --noprojects --staging --token $ROBOT_TOKEN
dx select $PROJECT
cd ${GITHUB_WORKSPACE}
# Run integration tests
FOLDER=/builds/test_gha_dxcompiler_$(date +%s)_$RANDOM
dx mkdir -p $FOLDER
python3 scripts/run_tests.py --folder $FOLDER --project $PROJECT \
--clean \
--test M
# Run multi-user tests
FOLDER=/builds/test_gha_dxcompiler_$(date +%s)_$RANDOM
dx mkdir -p $FOLDER
python3 scripts/run_multiuser_tests.py --folder $FOLDER --project $PROJECT \
--clean \
--alice-token $ROBOT_TOKEN \
--bob-token $TEST_ROBOT_TOKEN