-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
luis
committed
Feb 5, 2025
1 parent
1218b8a
commit 77d8d70
Showing
6 changed files
with
86 additions
and
67 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Essential Run Test - Pull Request | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
run-tests: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
markers: | ||
#- acl | ||
- cold_storage | ||
- basic | ||
- presign | ||
#- bucket_versioning | ||
#- policy | ||
uses: ./.github/workflows/run-tests.yml | ||
with: | ||
name: "${{ matrix.markers }}" # Markers must have no special chars, so you can use them as test_names | ||
test: "*_test.py" | ||
config: "../params.example.yaml" | ||
flags: "--no-header -vv -n auto --tb=short --color=no -m '${{ matrix.markers }}' --tb=line" | ||
secrets: | ||
PROFILES: ${{ secrets.PROFILES }} | ||
|
||
cleanup-tests: | ||
needs: [run-tests] | ||
if: always() | ||
uses: ./.github/workflows/cleanup-tests.yml | ||
secrets: | ||
PROFILES: ${{ secrets.PROFILES }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ jobs: | |
flags: ${{ inputs.flags }} | ||
secrets: | ||
PROFILES: ${{ secrets.PROFILES }} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Optional Run Test - Pull Request | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
# 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: | ||
marker: | ||
- flag: "not cli and locking" | ||
name: "not_cli_and_locking" | ||
config: | ||
- path: "../params/br-ne1.yaml" | ||
name: "ne1" | ||
- path: "../params/br-se1.yaml" | ||
name: "se1" | ||
|
||
uses: ./.github/workflows/run-tests.yml | ||
with: | ||
name: "${{matrix.marker.name}}_${{matrix.config.name}}" # Combination of values to represent the test | ||
test: "*_test.py" | ||
config: "${{ matrix.config.path }}" | ||
# no multiple workers here just to make it easier to audit the logs (more verbosity with INFO level) | ||
flags: "--no-header -v -n auto --log-cli-level INFO --color=no -m '${{matrix.marker.flag}}'" | ||
secrets: | ||
PROFILES: ${{ secrets.PROFILES }} | ||
|
||
cleanup-tests: | ||
needs: [run-locking-tests] | ||
if: always() | ||
uses: ./.github/workflows/cleanup-tests.yml | ||
secrets: | ||
PROFILES: ${{ secrets.PROFILES }} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ params.yaml | |
**/__pycache__/ | ||
|
||
# Ignore pytest debug log file | ||
pytestdebug.log | ||
pytestdebug.log |