Skip to content

Commit c6ce32d

Browse files
committed
Upgraded to specmatic 2.34.2
Moved specmatic license extraction before running tests. Insights push will be made only for main branch builds.
1 parent 0195c4f commit c6ce32d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ jobs:
2929
- name: Run pip install
3030
run: pip install -r requirements.txt
3131

32-
- name: Run contract as tests with Specmatic Python
33-
run: coverage run --branch -m pytest tests -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml
34-
3532
- name: Save Specmatic license
36-
if: runner.os == 'Linux'
33+
if: runner.os == 'Linux' && github.ref == 'refs/heads/main'
3734
run: |
3835
mkdir -p ~/.specmatic
3936
echo "${{ secrets.SPECMATIC_LICENSE_KEY }}" > ~/.specmatic/specmatic-license.txt
4037
38+
- name: Run contract as tests with Specmatic Python
39+
run: coverage run --branch -m pytest tests -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml
40+
4141
- name: Run Specmatic Insights Build Reporter
42-
if: runner.os == 'Linux'
42+
if: runner.os == 'Linux' && github.ref == 'refs/heads/main'
4343
run: |
4444
docker run \
4545
-v ${{ github.workspace }}:/workspace \

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fastapi>=0.110
22
pytest>=7.4
33
python-dotenv>=1.0
4-
specmatic==2.31.1
4+
specmatic==2.34.2
55
redis==7.0.1
66
testcontainers==4.13.2
77
coverage==7.11.0

0 commit comments

Comments
 (0)