Skip to content

Commit 41ef97c

Browse files
faster integration testing
1 parent dc6a2a6 commit 41ef97c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ jobs:
680680
sudo nginx -c "$(pwd)/test/tcp/reverse-proxy/nginx/dynamic-sni-proxy.conf"
681681
fi
682682
683+
- name: Install Python dependencies
684+
run: |
685+
pip3 install -r cicd/requirements.txt
686+
683687
- id: install-aws-cli
684688
uses: unfor19/install-aws-cli-action@v1
685689
with:
@@ -690,6 +694,7 @@ jobs:
690694
- name: Run traffic light robot integration tests
691695
if: ((startsWith(github.ref_name, 'build-traffic-lights') && github.ref_type == 'tag') || (github.repository == 'stackql/stackql' && github.event_name == 'push' && github.ref == 'refs/heads/main')) && matrix.registry == 'test/registry'
692696
env:
697+
PYTHONPATH: '${{ env.PYTHONPATH }}:${{ github.workspace }}/test/python'
693698
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
694699
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
695700
AZURE_INTEGRATION_TESTING_SUB_ID: ${{ secrets.AZURE_INTEGRATION_TESTING_SUB_ID }}
@@ -698,13 +703,7 @@ jobs:
698703
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
699704
GODEBUG: netdns=go
700705
run: |
701-
cliResult="$(aws s3 ls s3://stackql-trial-bucket-02 --region ap-southeast-2)" # 'stackql-trial-bucket-02' and region = 'ap-southeast-2'
702-
echo "AWS CLI S3 List Result: $cliResult"
703-
if [[ "$cliResult" == *"stackql-trial-bucket-02"* ]]; then
704-
echo "AWS CLI is working correctly."
705-
else
706-
echo "AWS CLI is not working correctly."
707-
fi
706+
aws s3 ls s3://stackql-trial-bucket-02 --region ap-southeast-2 --debug # 'stackql-trial-bucket-02' and region = 'ap-southeast-2'
708707
echo "## Stray flask apps to be killed before robot tests ##"
709708
pgrep -f flask | xargs kill -9 || true
710709
echo "## End ##"
@@ -718,10 +717,6 @@ jobs:
718717
echo "TRAFFIC_LIGHTS_COMPLETED=true"
719718
} >> "$GITHUB_ENV"
720719
721-
- name: Install Python dependencies
722-
run: |
723-
pip3 install -r cicd/requirements.txt
724-
725720
- name: Output from traffic lights integration tests
726721
if: env.TRAFFIC_LIGHTS_COMPLETED == 'true'
727722
run: |

0 commit comments

Comments
 (0)