File tree Expand file tree Collapse file tree 1 file changed +12
-20
lines changed
Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -13,37 +13,29 @@ jobs:
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- python-version : ['3.11 ']
16+ python-version : ['3.12 ']
1717
1818 steps :
19- - uses : actions/checkout@v4
19+ - uses : actions/checkout@v5
2020 with :
2121 fetch-depth : 0
2222
2323 - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v4
24+ uses : actions/setup-python@v6
2525 with :
2626 python-version : ${{ matrix.python-version }}
27- cache : " pip"
28- cache-dependency-path : |
29- setup.py
30- pyproject.toml
3127
32- - name : Install ERT with style dependencies
33- run : |
34- pip install ".[style]"
35-
36- - name : Clang Format
37- run : ./script/clang-format --check
38-
39- - name : CMake Format
40- if : ${{ always() }}
41- run : ./script/cmake-format --check
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v7
30+ with :
31+ enable-cache : true
32+ python-version : ${{ matrix.python-version }}
4233
43- - name : Add matching rule
44- run : echo ::add-matcher::.github/flake8-matcher.json
34+ - name : Install with style dependencies
35+ run : |
36+ uv sync --extra style
4537
4638 - name : Run style check
4739 if : ${{ always() }}
4840 run : |
49- pre-commit run --all-files --show-diff-on-failure
41+ SKIP=no-commit-to-branch uv run pre-commit run --all-files --show-diff-on-failure
You can’t perform that action at this time.
0 commit comments