Skip to content

Commit

Permalink
Split test running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KAUTH committed Jan 21, 2024
1 parent 486e98c commit e2db1c2
Showing 1 changed file with 60 additions and 2 deletions.
62 changes: 60 additions & 2 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
functional-das:
name: "DAS"
runs-on: ubuntu-latest
strategy:
matrix:
pytest-group: [ "1", "2", "3"]

steps:
- name: Checkout RSTUF Worker source code
Expand All @@ -72,11 +75,66 @@ jobs:

- name: Bootstrap/Setup RSTUF DAS and run Functional Tests
run: |
make ft-das CLI_VERSION=${{ inputs.cli_version }}
make ft-das CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=${{ matrix.pytest-group }}
functional-das-slow:
name: "DAS Slow"
runs-on: ubuntu-latest

steps:
- name: Checkout RSTUF Worker source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}

- name: Deploy RSTUF with Worker container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
API_VERSION: ${{ inputs.api_version }}

- name: Bootstrap/Setup RSTUF DAS and run Functional Tests
run: |
make ft-das CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=none SLOW="yes"
functional-signed:
name: "Signed"
runs-on: ubuntu-latest
strategy:
matrix:
pytest-group: [ "1", "2", "3"]

steps:
- name: Checkout RSTUF Worker source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}

- name: Deploy RSTUF with Worker container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
API_VERSION: ${{ inputs.api_version }}

- name: Bootstrap/Setup RSTUF full Signed and run Functional Tests
run: |
make ft-signed CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=${{ matrix.pytest-group }}
functional-signed-slow:
name: "Signed Slow"
runs-on: ubuntu-latest

steps:
- name: Checkout RSTUF Worker source code
Expand All @@ -98,4 +156,4 @@ jobs:

- name: Bootstrap/Setup RSTUF full Signed and run Functional Tests
run: |
make ft-signed CLI_VERSION=${{ inputs.cli_version }}
make ft-signed CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=none SLOW="yes"

0 comments on commit e2db1c2

Please sign in to comment.