Skip to content

Commit

Permalink
caching for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
kjappelbaum committed Aug 11, 2024
1 parent 82f46b6 commit 3044796
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Load cached Poetry installation
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
uses: snok/install-poetry@v1
run: pip install poetry
- name: Cache Poetry virtualenv
uses: actions/cache@v3
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached dependencies
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Cache dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Install dependencies
run: poetry install --no-interaction --no-root
run: poetry install
- name: Deploy to dev
run: poetry run chemenv deploy
env:
Expand Down

0 comments on commit 3044796

Please sign in to comment.