Skip to content

Commit

Permalink
Revert "CI caching. (#1796)"
Browse files Browse the repository at this point in the history
This reverts commit e275017.
  • Loading branch information
alexrudd2 committed Oct 17, 2023
1 parent ab9b41b commit b088e7c
Showing 1 changed file with 53 additions and 16 deletions.
69 changes: 53 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ on:

jobs:
linters:
name: Linters - ${{ matrix.os.on }} - ${{ matrix.python.version }}
runs-on: ${{ matrix.os.on }}
name: Linters
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
Expand All @@ -35,17 +35,39 @@ jobs:
- version: '3.11'
- version: '3.12'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
cache: 'pip'
- run: pip install -e ".[all]"
- run: codespell
- run: pylint --recursive=y examples pymodbus test
- run: pre-commit run --all-files
- run: cd doc; ./build_html
- run: mypy pymodbus

- name: venv restore
id: cache-venv
uses: syphar/restore-virtualenv@v1
with:
requirement_files: pyproject.toml

- name: venv create
if: steps.cache-venv.outputs.cache-hit != 'true'
run: pip install '.[all]'

- 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: cd doc; ./build_html

- name: mypy
run: mypy pymodbus


integreation_test:
name: pytest - ${{ matrix.os.on }} - ${{ matrix.python.version }}
Expand All @@ -65,25 +87,40 @@ jobs:
- version: '3.11'
- version: '3.12'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up ${{ matrix.python.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
cache: 'pip'
- run: pip install -e ".[all]"

- run: pytest -n0 -v --full-trace --timeout=1200
- name: venv restore
id: cache-venv
uses: syphar/restore-virtualenv@v1
with:
requirement_files: pyproject.toml

- name: venv create
if: steps.cache-venv.outputs.cache-hit != 'true'
run: pip install '.[all]'

- name: pytest
run: pytest -n0 -v --full-trace --timeout=1200

analyze:
name: Analyze Python
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- uses: github/codeql-action/init@v2
with:
languages: python

- uses: github/codeql-action/autobuild@v2

- uses: github/codeql-action/analyze@v2

ci_complete:
Expand Down

0 comments on commit b088e7c

Please sign in to comment.