Skip to content

Commit 8f28d9a

Browse files
committed
Update tests.yml
1 parent e7f4464 commit 8f28d9a

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ on:
1313
default: "3.12"
1414

1515
permissions:
16-
contents: read
16+
contents: write
1717
issues: write
18+
pull-requests: write
1819

1920
concurrency:
2021
group: tests-${{ github.ref }}
@@ -42,7 +43,7 @@ jobs:
4243
- name: Run tests (venv)
4344
run: |
4445
set -o pipefail
45-
venv/bin/python -m pytest --tb=short 2>&1 | tee error.log
46+
venv/bin/python -m pytest --jsss-ci-cd --save-original --tb=short 2>&1 | tee error.log
4647
4748
- name: report playwright failure
4849
if: failure()
@@ -51,3 +52,10 @@ jobs:
5152
github_token: ${{ secrets.GITHUB_TOKEN }}
5253
log_path: error.log
5354
screenshot_path: screenshot.png
55+
56+
- name: auto PR schema
57+
# отмена джобы исключается (поэтому и не always)
58+
if: success() || failure()
59+
uses: Miskler/pytest-jsonschema-snapshot-bot@v12
60+
with:
61+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)