Skip to content

Commit

Permalink
install project for pre-commit workflow so creosote can access the venv
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed May 29, 2023
1 parent de6f695 commit a9b0757
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3

- name: Cache $HOME/.local # Significantly speeds up Poetry Install
uses: actions/cache@v3
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/tests.yml') }}

- uses: actions/setup-python@v4

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}
restore-keys: ${{ runner.os }}-pip

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Belay
run: poetry install --no-interaction

- uses: pre-commit/[email protected]

0 comments on commit a9b0757

Please sign in to comment.