Remove duplicate log lines. #7329
Workflow file for this run
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- dev | |
- master | |
- wait_next_API | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- dev | |
- wait_next_api | |
types: [opened, synchronize, reopened, ready_for_review] | |
schedule: | |
# Sunday at 02:10 UTC. | |
- cron: '10 2 * * 0' | |
workflow_dispatch: | |
jobs: | |
testing: | |
name: ${{ matrix.os }} - ${{ matrix.python }} | |
if: github.event.pull_request.draft == false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
include: | |
- python: '3.10' | |
run_lint: true | |
- python: '3.13' | |
run_doc: true | |
run_lint: true | |
- os: macos-latest | |
run_doc: false | |
run_lint: false | |
- os: windows-latest | |
run_doc: false | |
run_lint: false | |
steps: | |
- name: Checkout repo from github | |
uses: actions/[email protected] | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
python-version: ${{ matrix.python }} | |
allow-prereleases: true | |
enable-cache: true | |
- name: Create virtualenv and sync dependencies | |
run: | | |
uv sync --all-extras | |
- name: codespell | |
if: matrix.run_doc == true | |
run: | | |
uv run codespell | |
- name: documentation | |
if: matrix.run_doc == true | |
run: | | |
source .venv/bin/activate | |
cd doc | |
./build_html | |
# this won't work on Windows, but we run_doc == False on Windows | |
- name: pylint | |
if: matrix.run_lint == true | |
run: | | |
uv run pylint --recursive=y examples pymodbus test | |
- name: mypy | |
if: matrix.run_lint == true | |
run: | | |
uv run mypy pymodbus examples | |
- name: ruff | |
if: matrix.run_lint == true | |
run: | | |
uv run ruff check . | |
- name: pytest | |
if: ${{ (matrix.os != 'ubuntu-latest') || (matrix.python != '3.14.0') }} | |
run: | | |
uv run pytest | |
- name: pytest coverage | |
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python == '3.14.0') }} | |
run: | | |
uv run pytest --cov | |
analyze: | |
name: Analyze Python | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/[email protected] | |
- uses: github/codeql-action/init@v3 | |
with: | |
languages: python | |
- uses: github/codeql-action/analyze@v3 | |
ci_complete: | |
name: ci_complete | |
runs-on: ubuntu-latest | |
needs: | |
- analyze | |
- testing | |
timeout-minutes: 1 | |
steps: | |
- run: echo 'finish job' |