Skip to content

Update specmatic version to 2.0.37 #181

Update specmatic version to 2.0.37

Update specmatic version to 2.0.37 #181

Workflow file for this run

name: CI with contracts run through command line
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [3.12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: main
- name: Set up JRE 17
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
java-package: 'jre'
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Run pip install
working-directory: main
run: pip install -r requirements.txt
- name: Run contract as tests with Specmatic Python Extensions
working-directory: main
run: coverage run --branch -m pytest test -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml
- name: Publish contract test report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/contract-test-reports/TEST-*.xml'
- name: Generate coverage report
working-directory: main
run: coverage html -d coverage-report
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os}}-coverage-report
path: main/coverage-report
- name: Upload HTML Test Report
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-html-report
path: main/build/reports/specmatic/html