-
Notifications
You must be signed in to change notification settings - Fork 45
52 lines (42 loc) · 1.63 KB
/
all_module_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
- name: Run All Modules Check
run: /usr/bin/env python all_modules_test.py