Skip to content

Commit 55ac603

Browse files
authored
Add workflow to check compatibility with latest pymodbus
1 parent 54f1c5d commit 55ac603

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test compatibility with latest pymodbus
2+
3+
# This action runs once a week (Sunday at 03:00 UTC).
4+
# It can also be triggered manually via the GitHub Actions UI.
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 3 * * 0'
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
python-version: ["3.12", "3.13"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: uv sync --locked --all-extras --dev
29+
- name: Install dependencies and latest pymodbus
30+
# This single command does the following:
31+
# 1. Installs the project in editable mode (-e .)
32+
# 2. Installs the extra dependencies for 'test' (pytest, pytest-cov)
33+
# 3. Ensures the latest version of pymodbus is installed
34+
run: uv pip install -e .[test] --upgrade pymodbus
35+
- name: Run tests
36+
run: |
37+
uv run pytest \
38+
-qq \
39+
--durations=10 \
40+
-o console_output_style=count \
41+
-p no:sugar \
42+
test

0 commit comments

Comments
 (0)