Skip to content

Commit 1b12541

Browse files
committedJun 2, 2023
Merge branch 'dev'
2 parents 844913d + 684083f commit 1b12541

File tree

185 files changed

+5479
-11006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+5479
-11006
lines changed
 

‎.github/workflows/ci.yml

+60-52
Original file line numberDiff line numberDiff line change
@@ -17,74 +17,72 @@ on:
1717

1818

1919
jobs:
20+
linters:
21+
name: Linters
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 10
24+
strategy:
25+
fail-fast: false
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Set up python
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: 3.8
34+
35+
- name: venv restore
36+
id: cache-venv
37+
uses: syphar/restore-virtualenv@v1
38+
with:
39+
requirement_files: requirements.txt
40+
41+
- name: venv create
42+
if: steps.cache-venv.outputs.cache-hit != 'true'
43+
run: pip install -e . -r requirements.txt
44+
45+
- name: codespell
46+
run: codespell
47+
48+
- name: pylint
49+
run: pylint --recursive=y examples pymodbus test
50+
51+
- name: precommit (black, bandit, and ruff)
52+
run: pre-commit run --all-files
53+
54+
- name: docs
55+
run: make -C doc/ html
56+
57+
- name: mypy
58+
run: mypy pymodbus
59+
60+
2061
integreation_test:
21-
name: ${{ matrix.task.name }} - ${{ matrix.os.on }} - ${{ matrix.python.version }}
62+
name: pytest - ${{ matrix.os.on }} - ${{ matrix.python.version }}
2263
runs-on: ${{ matrix.os.on }}
64+
needs: linters
2365
timeout-minutes: 10
2466
strategy:
2567
fail-fast: false
2668
matrix:
27-
task:
28-
- name: pylint
29-
cmd: pylint --recursive=y examples pymodbus test
30-
type: lint
31-
- name: codespell
32-
cmd: codespell
33-
type: lint
34-
- name: bandit
35-
cmd: bandit -r -c bandit.yaml .
36-
type: lint
37-
- name: flake8
38-
cmd: flake8
39-
type: lint
40-
- name: precommit (isort and black)
41-
cmd: pre-commit run --all-files
42-
type: lint
43-
- name: docs
44-
cmd: make -C doc/ html
45-
type: lint
46-
- name: mypy
47-
cmd: mypy pymodbus
48-
type: lint
49-
- name: pytest
50-
cmd: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20
51-
type: test
5269
os:
53-
- name: Linux
54-
on: ubuntu-latest
55-
lint: 'yes'
56-
- name: Macos
57-
on: macos-latest
58-
lint: 'no'
59-
- name: Windows
60-
on: windows-latest
61-
lint: 'no'
70+
- on: ubuntu-latest
71+
- on: macos-latest
72+
- on: windows-latest
6273
python:
6374
- version: '3.8'
64-
lint: 'yes'
6575
- version: '3.9'
66-
lint: 'no'
6776
- version: '3.10'
68-
lint: 'no'
6977
- version: '3.11'
70-
lint: 'no'
7178
- version: pypy-3.8
72-
lint: 'no'
7379
exclude:
74-
- task:
75-
type: lint
76-
os:
77-
lint: 'no'
78-
- task:
79-
type: lint
80-
python:
81-
lint: 'no'
8280
- os:
83-
name: Macos
81+
on: macos-latest
8482
python:
8583
version: pypy-3.8
8684
- os:
87-
name: Windows
85+
on: windows-latest
8886
python:
8987
version: pypy-3.8
9088
steps:
@@ -106,5 +104,15 @@ jobs:
106104
if: steps.cache-venv.outputs.cache-hit != 'true'
107105
run: pip install -e . -r requirements.txt
108106

109-
- name: test/lint
110-
run: ${{ matrix.task.cmd }}
107+
- name: pytest
108+
run: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20
109+
110+
ci_complete:
111+
name: ci_complete
112+
runs-on: ubuntu-latest
113+
needs:
114+
- integreation_test
115+
timeout-minutes: 1
116+
steps:
117+
- name: Dummy
118+
run: ls

‎.github/workflows/clean_cache.yml

-33
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.