@@ -8,26 +8,26 @@ name: CI
88 pull_request : null
99
1010jobs :
11- pre-commit :
11+ prek :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v4
14+ - uses : actions/checkout@v5
1515 - name : Set up Python
16- uses : actions/setup-python@v5
16+ uses : actions/setup-python@v6
1717 with :
1818 python-version : 3.12
19- - uses : pre-commit/ action@v3.0.1
19+ - uses : j178/prek- action@v1
2020
2121 tests :
2222 runs-on : ${{ matrix.os }}
2323 strategy :
2424 matrix :
25- python-version : [3.9, 3.12]
25+ python-version : ["3.10", " 3.12" ]
2626 os : [ubuntu-latest, windows-latest]
2727 steps :
28- - uses : actions/checkout@v4
28+ - uses : actions/checkout@v5
2929 - name : Set up Python ${{ matrix.python-version }}
30- uses : actions/setup-python@v5
30+ uses : actions/setup-python@v6
3131 with :
3232 python-version : ${{ matrix.python-version }}
3333 - name : Installation (deps and package)
@@ -47,33 +47,33 @@ jobs:
4747 # with:
4848 # token: ${{ secrets.CODECOV_TOKEN }}
4949
50- pre-commit -hook :
50+ prek -hook :
5151 runs-on : ubuntu-latest
5252 steps :
53- - uses : actions/checkout@v4
53+ - uses : actions/checkout@v5
5454 - name : Set up Python
55- uses : actions/setup-python@v5
55+ uses : actions/setup-python@v6
5656 with :
5757 python-version : 3.12
5858 - name : Installation (deps and package)
59+ uses : j178/prek-action@v1
60+ with :
61+ install-only : true
62+ - name : run prek with plugin
5963 run : |
60- pipx install pre-commit
61- pip install .
62- - name : run pre-commit with plugin
63- run : |
64- pre-commit run --config .pre-commit-test.yaml --all-files --verbose --show-diff-on-failure
64+ prek run --config .prek-test.yaml --all-files --verbose --show-diff-on-failure
6565
6666 publish :
6767 name : Publish to PyPi
68- needs : [pre-commit , tests, pre-commit -hook]
68+ needs : [prek , tests, prek -hook]
6969 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
7070 runs-on : ubuntu-latest
7171 # Fix 403 error (https://github.com/softprops/action-gh-release/issues/400)
7272 permissions :
7373 contents : write
7474 steps :
7575 - name : Checkout source
76- uses : actions/checkout@v4
76+ uses : actions/checkout@v5
7777 - name : install flit
7878 run : |
7979 pipx install flit~=3.10.1
0 commit comments