File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 . venv/bin/activate
6868 pre-commit install --install-hooks
6969
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- 77- - name : Set up Python ${{ env.DEFAULT_PYTHON }}
78- id : python
79- 80- with :
81- python-version : ${{ env.DEFAULT_PYTHON }}
82- - name : Restore Python virtual environment
83- id : cache-venv
84- 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- 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-
11270 prepare-tests-linux :
11371 name : Prepare tests for Python ${{ matrix.python-version }} (Linux)
11472 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments