Skip to content

Commit 11b294c

Browse files
committed
enable contract tests in pr build
1 parent 603e878 commit 11b294c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
branches:
55
- main
66
- "release/v*"
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: The version to tag the release with, e.g., 1.2.0
11+
required: true
12+
default: "0.2.0"
713

814
permissions:
915
id-token: write
@@ -48,6 +54,17 @@ jobs:
4854
with:
4955
verbose: true
5056

57+
contract-test:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: run contract tests
62+
run: |
63+
bash ./scripts/build_and_install_distro.sh
64+
bash scripts/set-up-contract-tests.sh
65+
pip install pytest
66+
pytest contract-tests/tests
67+
5168
lint:
5269
runs-on: ubuntu-latest
5370
steps:

0 commit comments

Comments
 (0)