-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,665 additions
and
816 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,68 +17,72 @@ on: | |
|
||
|
||
jobs: | ||
linters: | ||
name: Linters | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: venv restore | ||
id: cache-venv | ||
uses: syphar/restore-virtualenv@v1 | ||
with: | ||
requirement_files: requirements.txt | ||
|
||
- name: venv create | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
run: pip install -e . -r requirements.txt | ||
|
||
- name: codespell | ||
run: codespell | ||
|
||
- name: pylint | ||
run: pylint --recursive=y examples pymodbus test | ||
|
||
- name: precommit (black, bandit, and ruff) | ||
run: pre-commit run --all-files | ||
|
||
- name: docs | ||
run: make -C doc/ html | ||
|
||
- name: mypy | ||
run: mypy pymodbus | ||
|
||
|
||
integreation_test: | ||
name: ${{ matrix.task.name }} - ${{ matrix.os.on }} - ${{ matrix.python.version }} | ||
name: pytest - ${{ matrix.os.on }} - ${{ matrix.python.version }} | ||
runs-on: ${{ matrix.os.on }} | ||
needs: linters | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
task: | ||
- name: pylint | ||
cmd: pylint --recursive=y examples pymodbus test | ||
type: lint | ||
- name: codespell | ||
cmd: codespell | ||
type: lint | ||
- name: precommit (black, bandit, and ruff) | ||
cmd: pre-commit run --all-files | ||
type: lint | ||
- name: docs | ||
cmd: make -C doc/ html | ||
type: lint | ||
- name: mypy | ||
cmd: mypy pymodbus | ||
type: lint | ||
- name: pytest | ||
cmd: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20 | ||
type: test | ||
os: | ||
- name: Linux | ||
on: ubuntu-latest | ||
lint: 'yes' | ||
- name: Macos | ||
on: macos-latest | ||
lint: 'no' | ||
- name: Windows | ||
on: windows-latest | ||
lint: 'no' | ||
- on: ubuntu-latest | ||
- on: macos-latest | ||
- on: windows-latest | ||
python: | ||
- version: '3.8' | ||
lint: 'yes' | ||
- version: '3.9' | ||
lint: 'no' | ||
- version: '3.10' | ||
lint: 'no' | ||
- version: '3.11' | ||
lint: 'no' | ||
- version: pypy-3.8 | ||
lint: 'no' | ||
exclude: | ||
- task: | ||
type: lint | ||
os: | ||
lint: 'no' | ||
- task: | ||
type: lint | ||
python: | ||
lint: 'no' | ||
- os: | ||
name: Macos | ||
on: macos-latest | ||
python: | ||
version: pypy-3.8 | ||
- os: | ||
name: Windows | ||
on: windows-latest | ||
python: | ||
version: pypy-3.8 | ||
steps: | ||
|
@@ -100,8 +104,8 @@ jobs: | |
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
run: pip install -e . -r requirements.txt | ||
|
||
- name: test/lint | ||
run: ${{ matrix.task.cmd }} | ||
- name: pytest | ||
run: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20 | ||
|
||
ci_complete: | ||
name: ci_complete | ||
|
@@ -110,5 +114,5 @@ jobs: | |
- integreation_test | ||
timeout-minutes: 1 | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Dummy | ||
run: ls |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.