Commit created a artifact-test.ym on workflows aiming to generate tes… #179
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: Run Test - Pull Request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run-tests: | |
strategy: | |
fail-fast: true | |
matrix: | |
category: | |
#- acl | |
#- cold_storage | |
- basic | |
- presign | |
#- bucket_versioning | |
# - policy | |
uses: ./.github/workflows/run-tests.yml | |
with: | |
tests: "${{ matrix.category }}" | |
config: "../params.example.yaml" | |
flags: "--no-header -vv -n auto --tb=short --color=no -m ${{ matrix.category }} --tb=line" | |
secrets: | |
PROFILES: ${{ secrets.PROFILES }} | |
tests-success: | |
runs-on: ubuntu-24.04 | |
needs: [run-tests] | |
steps: | |
- name: ok | |
run: | |
exit 0 | |
# since locking is a feature currently under preview, we run it separatedely | |
# and dont block merges if they fail | |
run-locking-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
category: | |
- not_cli_and_locking | |
config: | |
- "../params/br-ne1.yaml" | |
- "../params/br-se1.yaml" | |
uses: ./.github/workflows/run-tests.yml | |
with: | |
tests: "${{matrix.category}}" | |
config: "${{ matrix.config }}" | |
# no multiple workers here just to make it easier to audit the logs (more verbosity with INFO level) | |
flags: "--no-header -vv -n auto --tb=short --color no -m 'not cli and locking'" | |
secrets: | |
PROFILES: ${{ secrets.PROFILES }} | |
cleanup-tests: | |
needs: [tests-success, run-locking-tests] | |
if: always() | |
uses: ./.github/workflows/cleanup-tests.yml | |
secrets: | |
PROFILES: ${{ secrets.PROFILES }} |