Skip to content

Various fixes

Various fixes #233

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]
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 io tests
run: poetry run python -X faulthandler -m pytest -p no:faulthandler tests/io
- name: Run model tests
run: poetry run python -X faulthandler -m pytest -p no:faulthandler tests/model
- name: Run util tests
run: poetry run python -X faulthandler -m pytest -p no:faulthandler tests/util
- name: Run api tests (dc)
run: poetry run python -X faulthandler -m pytest -p no:faulthandler tests/api/dc
- name: Run api tests (qb)
run: poetry run python -X faulthandler -m pytest -p no:faulthandler tests/api/qb
# - name: Run tests
# run: poetry run python -X faulthandler -m pytest -p no:faulthandler --cov=pysdmx --cov-branch --junitxml=qa/tests-results-${{ matrix.python-version }}.xml
# - name: Check coverage
# run: poetry run coverage report --fail-under=50