Skip to content

chore(main): 馃敄 release v4.5.3 #225

chore(main): 馃敄 release v4.5.3

chore(main): 馃敄 release v4.5.3 #225

Workflow file for this run

name: Unit Tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/test.yaml"
pull_request:
paths:
- "src/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/test.yaml"
permissions:
contents: read
id-token: write
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13", "3.14"]
name: pytest (Python ${{ matrix.python-version }})
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
pytest --cov=neopool_modbus --cov-report=xml --junitxml=junit.xml -o junit_family=legacy --disable-warnings
- name: Upload coverage to Codecov
if: ${{ !cancelled() && matrix.python-version == '3.13' }}
uses: codecov/codecov-action@v7
with:
files: coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
- name: Upload test results to Codecov
if: ${{ !cancelled() && matrix.python-version == '3.13' }}
uses: codecov/codecov-action@v7
with:
report_type: test_results
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true