File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change 39
39
GIT_AUTHOR_NAME : CI User
40
40
41
41
jobs :
42
- pre-commit :
43
- runs-on : ubuntu-22.04
44
-
45
- strategy :
46
- fail-fast : false
47
- matrix :
48
- python_version : ["3.9"]
49
-
50
- steps :
51
- - uses : actions/checkout@v3
52
- - uses : actions/setup-python@v4
53
- with :
54
- python-version : " ${{ matrix.python_version }}"
55
-
56
- # There will almost never be a cache hit on the cache key when this job is
57
- # run, as it is the first of all jobs in this workflow. The subsequent
58
- # jobs in this workflow can rely on this cache though.
59
- - name : Save pip's install cache on job completion
60
- uses : actions/cache@v3
61
- with :
62
- path : ~/.cache/pip
63
- key : " ${{ github.run_id }}-${{ matrix.python_version }}"
64
-
65
- - name : Install dependencies
66
- run : |
67
- pip install -r dev-requirements.txt
68
- pip freeze
69
-
70
- - run : pre-commit run --all-files
71
-
72
42
test :
73
- needs : pre-commit
74
43
runs-on : ubuntu-${{ matrix.ubuntu_version }}
75
44
76
45
strategy :
@@ -103,12 +72,6 @@ jobs:
103
72
with :
104
73
python-version : " ${{ matrix.python_version }}"
105
74
106
- - name : Restore pip's install cache from previous job
107
- uses : actions/cache@v3
108
- with :
109
- path : ~/.cache/pip
110
- key : " ${{ github.run_id }}-${{ matrix.python_version }}"
111
-
112
75
- name : Install dependencies
113
76
run : |
114
77
pip install -r dev-requirements.txt
You can’t perform that action at this time.
0 commit comments