Bump flask from 2.3.2 to 3.0.0 #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8, 3.11] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: main | |
- name: Set up JRE 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '17' | |
java-package: 'jre' | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
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 --junitxml contract-test-reports/TEST-junit-jupiter.xml | |
- name: Publish contract test report | |
uses: mikepenz/action-junit-report@v3 | |
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@v2 | |
with: | |
name: coverage-report | |
path: main/coverage-report | |