fix(ci): pin + cache

This commit is contained in:
Timothy Stewart
2022-11-01 19:40:28 -05:00
parent dbb2cda17a
commit 94e385c28e
2 changed files with 11 additions and 5 deletions

View File

@@ -10,15 +10,17 @@ jobs:
pre-commit-ci:
name: Pre-Commit
runs-on: [self-hosted, Linux, x64]
env:
PYTHON_VERSION: "3.10"
steps:
- name: Check out the codebase
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2
- name: Set up Python 3.x
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # 4.3.0
with:
python-version: "3.x"
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip' # caching pip dependencies