message: check for requirements.txt
diff: @@ -25,19 +25,6 @@ jobs:
  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  - uses: actions/checkout@v2
  - # Validate TypeScript Patterns
  - - name: Build/Test TypeScript Patterns
  - run: |
  - readarray -t arr < <(jq -r '.[] | keys | .[]' info.json);
  - for i in "${arr[@]}"
  - do
  - cd $i/typescript;
  - npm i;
  - npm run build;
  - npm run test;
  - cd ../../;
  - done
  -
  # Validate Python Patterns
  - name: Build/Synth Python Patterns
  run: |
  @@ -45,10 +32,27 @@ jobs:
  for i in "${arr[@]}"
  do
  cd $i/python;
  + if test -f "requirements.txt"; then
  python3 -m venv .env
  source .env/bin/activate
  pip3 install -r requirements.txt
  npx cdk synth
  deactivate
  + fi
  + cd ../../;
  + done
  +
  + # Validate TypeScript Patterns
  + - name: Build/Test TypeScript Patterns
  + run: |
  + readarray -t arr < <(jq -r '.[] | keys | .[]' info.json);
  + for i in "${arr[@]}"
  + do
  + cd $i/typescript;
  + npm i;
  + npm run build;
  + npm run test;
  cd ../../;
  done
  +
  +
  