Skip to content

Commit

Permalink
Test a range of pymodbus versions (#42)
Browse files Browse the repository at this point in the history
* Test a range of pymodbus versions

* Install pymodbus first to avoid re-install

* Pymodbus 3 doesn't work on Python3.7
  • Loading branch information
alexrudd2 authored Jun 5, 2023
1 parent 0c3c459 commit fce7ac3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
pymodbus-version: ["2.5.3", "3.0.2", "3.1.3", "3.2.2"]
exclude:
- python-version: "3.10"
pymodbus-version: "2.5.3"
- python-version: "3.11"
pymodbus-version: "2.5.3"
- python-version: "3.7"
pymodbus-version: "3.0.2"
- python-version: "3.7"
pymodbus-version: "3.1.3"
- python-version: "3.7"
pymodbus-version: "3.2.2"

steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +39,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'pymodbus==${{ matrix.pymodbus-version }}'
python -m pip install '.[test]'
- name: Lint with ruff
run: |
Expand Down

0 comments on commit fce7ac3

Please sign in to comment.