Skip to content

More policy tests

More policy tests #124

name: Run Test - Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-tests:
strategy:
fail-fast: true
matrix:
category:
- cold_storage
- basic
- presign
- bucket_versioning
uses: ./.github/workflows/run-tests.yml
with:
tests: "*_test.py"
config: "../params.example.yaml"
flags: "-v -n auto --color yes -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
# tests that for one reason or another we dont want to make it a blocker for PRs
# it may be because they are slow, or because tey include features still in preview/not fully
# launched
run-extra-tests-locking:
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: "*_test.py"
config: "${{ matrix.config }}"
# no multiple workers here just to make it easier to audit the logs (more verbosity with INFO level)
flags: "-v --log-cli-level INFO --color yes -m '${{ matrix.category }}'"
secrets:
PROFILES: ${{ secrets.PROFILES }}
run-extra-tests-others:
strategy:
fail-fast: false
matrix:
category:
- policy
- acl
uses: ./.github/workflows/run-tests.yml
with:
tests: "*_test.py"
config: "../params.example.yaml"
flags: "-v -n auto --color yes -m '${{ matrix.category }}' --tb=line"
secrets:
PROFILES: ${{ secrets.PROFILES }}