Skip to content

Commit 8a02e35

Browse files
committed
Update tests.yml
1 parent e4ee367 commit 8a02e35

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on:
1010
python-version:
1111
required: false
1212
type: string
13-
default: "3.13"
13+
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)