Skip to content

Commit

Permalink
added caching and fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedNasser8 committed Jun 11, 2024
1 parent e93dea7 commit 27ea7e2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: '1.2.2' # Specify the Poetry version you need
poetry-version: '1.8.3'

- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: poetry install
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/pytest-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ jobs:
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: '1.2.2' # Specify the Poetry version you need
poetry-version: '1.8.3' # Specify the Poetry version you need

- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Update lock file
run: poetry lock --no-update

- name: Install dependencies
run: poetry install
Expand Down

0 comments on commit 27ea7e2

Please sign in to comment.