File tree Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Original file line number Diff line number Diff line change 67
67
. venv/bin/activate
68
68
pre-commit install --install-hooks
69
69
70
- formatting :
71
- name : Run pre-commit checks
72
- runs-on : ubuntu-latest
73
- needs : prepare-base
74
- steps :
75
- - name : Check out code from GitHub
76
- uses : actions/checkout@v2.4.0
77
- - name : Set up Python ${{ env.DEFAULT_PYTHON }}
78
- id : python
79
- uses : actions/setup-python@v2.3.1
80
- with :
81
- python-version : ${{ env.DEFAULT_PYTHON }}
82
- - name : Restore Python virtual environment
83
- id : cache-venv
84
- uses : actions/cache@v2.1.7
85
- with :
86
- path : venv
87
- key :
88
- ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
89
- needs.prepare-base.outputs.python-key }}
90
- - name : Fail job if Python cache restore failed
91
- if : steps.cache-venv.outputs.cache-hit != 'true'
92
- run : |
93
- echo "Failed to restore Python venv from cache"
94
- exit 1
95
- - name : Restore pre-commit environment
96
- id : cache-precommit
97
- uses : actions/cache@v2.1.7
98
- with :
99
- path : ${{ env.PRE_COMMIT_CACHE }}
100
- key : ${{ runner.os }}-${{ needs.prepare-base.outputs.pre-commit-key }}
101
- - name : Fail job if pre-commit cache restore failed
102
- if : steps.cache-precommit.outputs.cache-hit != 'true'
103
- run : |
104
- echo "Failed to restore pre-commit environment from cache"
105
- exit 1
106
- - name : Run formatting check
107
- run : |
108
- . venv/bin/activate
109
- pip install -e .
110
- pre-commit run pylint --all-files
111
-
112
70
prepare-tests-linux :
113
71
name : Prepare tests for Python ${{ matrix.python-version }} (Linux)
114
72
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments