File tree Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 1010permissions :
1111 contents : read
1212
13- env :
14- MIN_PYTHON_VERSION : " 3.10"
15-
1613jobs :
1714 test :
1815 runs-on : ubuntu-latest
2219 - name : Setup Python
2320 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2421 with :
25- python-version : ${{ env.MIN_PYTHON_VERSION }}
22+ python-version-file : ' .python-version '
2623
2724 - name : Install dependencies
2825 run : |
4542 - name : Set up Python
4643 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4744 with :
48- python-version : ${{ env.MIN_PYTHON_VERSION }}
45+ python-version-file : ' .python-version '
4946
5047 - name : Install dependencies
5148 run : |
7471 - name : Set up Python
7572 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
7673 with :
77- python-version : ${{ env.MIN_PYTHON_VERSION }}
74+ python-version-file : ' .python-version '
7875 - name : publish brew
7976 run : |
8077 sleep 5m
Original file line number Diff line number Diff line change @@ -12,20 +12,22 @@ permissions:
1212 contents : read
1313
1414env :
15- MIN_PYTHON_VERSION : " 3.10 "
15+ PREK_VERSION : ' 0.2.11 '
1616
1717jobs :
18- pre-commit :
18+ prek :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222 - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2323 with :
24- python-version : ${{ env.MIN_PYTHON_VERSION }}
25- - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
24+ python-version-file : ' .python-version'
25+ - uses : j178/prek-action@91fd7d7cf70ae1dee9f4f44e7dfa5d1073fe6623 # v1.0.11
26+ with :
27+ prek-version : ${{ env.PREK_VERSION }}
2628
2729 ci :
28- needs : pre-commit
30+ needs : prek
2931 runs-on : ubuntu-latest
3032 timeout-minutes : 15
3133 steps :
3436 - name : Setup Python
3537 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3638 with :
37- python-version : ${{ env.MIN_PYTHON_VERSION }}
39+ python-version-file : ' .python-version '
3840
3941 - name : Install dependencies
4042 run : |
5355 make type-check
5456
5557 python-version :
56- needs : pre-commit
58+ needs : prek
5759 if : github.event_name == 'pull_request'
5860 runs-on : ubuntu-latest
5961 timeout-minutes : 15
Original file line number Diff line number Diff line change 2121 - name : Setup python
2222 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2323 with :
24- python-version : ${{ env.MIN_PYTHON_VERSION }}
24+ python-version-file : ' .python-version '
2525
2626 - name : Install dependencies
2727 run : |
Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/rhysd/actionlint
3- rev : v1.7.7
3+ rev : v1.7.8
44 hooks :
55 - id : actionlint-docker
66 - repo : https://github.com/astral-sh/ruff-pre-commit
7- rev : v0.14.0
7+ rev : v0.14.2
88 hooks :
99 - id : ruff-check
1010 files : ^(cloudsplaining/|setup.py)
Original file line number Diff line number Diff line change 11-r requirements.txt
22# CI
3- pre-commit == 4.3.0
3+ prek == 0.2.11
44# Unit testing
55pytest == 8.4.2
66coverage == 7.10.7
You can’t perform that action at this time.
0 commit comments