chore(github): configure new runner for AWS tests

This commit is contained in:
César Arroba
2025-12-04 16:24:06 +01:00
parent 3616c0a8c0
commit a97ddacb82
+58 -2
View File
@@ -15,9 +15,9 @@ concurrency:
cancel-in-progress: true
jobs:
sdk-tests:
sdk-tests-aws:
if: github.repository == 'prowler-cloud/prowler'
runs-on: ubuntu-latest
runs-on: ubuntu-latest-aws
timeout-minutes: 120
permissions:
contents: read
@@ -95,6 +95,62 @@ jobs:
flags: prowler-py${{ matrix.python-version }}-aws
files: ./aws_coverage.xml
sdk-tests:
if: github.repository == 'prowler-cloud/prowler'
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: read
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Check for SDK changes
id: check-changes
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
with:
files: ./**
files_ignore: |
.github/**
prowler/CHANGELOG.md
docs/**
permissions/**
api/**
ui/**
dashboard/**
mcp_server/**
README.md
mkdocs.yml
.backportrc.json
.env
docker-compose*
examples/**
.gitignore
contrib/**
- name: Install Poetry
if: steps.check-changes.outputs.any_changed == 'true'
run: pipx install poetry==2.1.1
- name: Set up Python ${{ matrix.python-version }}
if: steps.check-changes.outputs.any_changed == 'true'
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
if: steps.check-changes.outputs.any_changed == 'true'
run: poetry install --no-root
# Azure Provider
- name: Check if Azure files changed
if: steps.check-changes.outputs.any_changed == 'true'