Skip to content

Fix support for python 3.14 #17

Fix support for python 3.14

Fix support for python 3.14 #17

Workflow file for this run

name: Validate
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
pytest:
name: Unit testing
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.14"]
steps:
- name: Checkout the repository
uses: actions/checkout@v5
with:
fetch-depth: 0 # To ensure non-shallow git clones for sonar
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run pytest
run: |
pytest --cov=objdictgen --cov-report=xml --cov-branch -p no:logging --tb=no
- name: SonarCloud Scan
uses: SonarSource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
mypy:
name: Static type analysis
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run mypy
run: |
mypy src/objdictgen
continue-on-error: true
ruff:
name: Code linting
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Run ruff check
uses: astral-sh/ruff-action@v3
with:
args: check
src: "."