Skip to content

Commit b318c23

Browse files
committed
Add workflow to check compatibility with latest pymodbus
1 parent affbd46 commit b318c23

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 and latest pymodbus
28+
run: uv sync -P pymodbus --all-extras --dev
29+
- name: Run tests
30+
run: |
31+
uv run -P pymodbus pytest \
32+
-qq \
33+
--durations=10 \
34+
-o console_output_style=count \
35+
-p no:sugar \
36+
test

0 commit comments

Comments
 (0)