Email Retries and Log file inclusion in the attachment (#1105) #2281
Workflow file for this run
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: All Modules Import Test | |
on: | |
pull_request: | |
types: [ opened, reopened, edited, ready_for_review ] | |
push: | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUILDER_PAT_ENCODED }} | |
jobs: | |
all-module-import-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776 # v2.2.1 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: ${{ secrets.GHACTION_AWS_REGION }} | |
role-to-assume: ${{ secrets.GHACTION_AWS_ROLE }} | |
role-session-name: ${{ secrets.GHACTION_AWS_SESSION_NAME }} | |
- name: Install system dependencies | |
run: | | |
pip install shyaml | |
pip install --upgrade pip==22.2.2 | |
sudo apt update | |
sudo apt install -y wget | |
sudo apt install -y awscli | |
aws s3 cp ${{ secrets.BUILD_REQUIREMENTS }} /tmp/requirements.txt | |
pip install --no-cache-dir -r /tmp/requirements.txt | |
aws s3 cp ${{ secrets.MAIN_MODULE_BUILD_PACKAGE }} /tmp/main_module.tar.gz | |
pip install --no-cache-dir /tmp/main_module.tar.gz | |
aws s3 cp ${{ secrets.SUB_MODULE_BUILD_PACKAGE }} /tmp/sub_module.tar.gz | |
pip install --no-cache-dir /tmp/sub_module.tar.gz | |
pip install --no-cache-dir matplotlib>=3.7.1 | |
- name: Run All Modules Check | |
run: /usr/bin/env python all_modules_test.py |