File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 1414 - name : Run tests
1515 run : docker compose run django py.test
1616
17- install_dependencies :
18- runs-on : ubuntu-latest
19- steps :
20- - uses : actions/checkout@v4
21- - uses : actions/setup-python@v5
22- with :
23- python-version : 3.12.4
24- cache : " pip"
25- cache-dependency-path : |
26- requirements/local.txt
27- requirements/base.txt
28- - name : Install dependencies
29- run : pip install -r requirements/local.txt
30-
3117 build :
3218 runs-on : ubuntu-latest
3319 needs : install_dependencies
4531 steps :
4632 - uses : actions/checkout@v4
4733 - name : Run ruff
34+ - uses : ./.github/workflows/python_and_pip.yml"
35+ with :
36+ python-version : 3.12.4
4837 run : ruff check .
4938 - name : Type check
5039 run : mypy --config mypy.ini styleguide_example/
Original file line number Diff line number Diff line change 1+ name : " Install & Cache Python dependencies"
2+ description : " Reusable step (aka 'composite action') for doing pip installs, with cache included."
3+ inputs :
4+ python-version :
5+ description : " The version of Python to install"
6+ required : true
7+ run :
8+ using : " composite"
9+ steps :
10+ - uses : actions/setup-python@v5
11+ with :
12+ python-version : ${{ inputs.python-version }}
13+ cache : " pip"
14+ cache-dependency-path : |
15+ requirements/local.txt
16+ requirements/base.txt
17+ - name : Install dependencies
18+ run : pip install -r requirements/local.txt
You can’t perform that action at this time.
0 commit comments