File tree 2 files changed +21
-14
lines changed
2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 14
14
- name : Run tests
15
15
run : docker compose run django py.test
16
16
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
-
31
17
build :
32
18
runs-on : ubuntu-latest
33
19
needs : install_dependencies
45
31
steps :
46
32
- uses : actions/checkout@v4
47
33
- name : Run ruff
34
+ - uses : ./.github/workflows/python_and_pip.yml"
35
+ with :
36
+ python-version : 3.12.4
48
37
run : ruff check .
49
38
- name : Type check
50
39
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