Skip to content

Merge pull request #52 from bis-med-it/fmr_reorg #130

Merge pull request #52 from bis-med-it/fmr_reorg

Merge pull request #52 from bis-med-it/fmr_reorg #130

Workflow file for this run

name: Build
on:
push:
branches: [ "develop", "master" ]
pull_request:
branches: [ "develop", "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install --all-extras
- name: Run lint checks
run: poetry run flake8 src tests
- name: Run type checks
run: poetry run mypy
- name: Run tests
run: poetry run pytest --cov=pysdmx --cov-report=xml:qa/coverage.xml --cov-branch --junitxml=qa/tests-results-${{ matrix.python-version }}.xml
- name: Check coverage
run: poetry run coverage report --fail-under=100