Skip to content

Commit

Permalink
updated cache handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaDuina committed Dec 20, 2024
1 parent 2732f5d commit ef2f713
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Check formatting and run tests
on:
pull_request:
branches:
- '*'
- '*' # Trigger on pull requests for all branches
paths:
- '**.py'
- '**.py' # Only run on changes to Python files

push:
branches:
Expand Down Expand Up @@ -67,6 +67,11 @@ jobs:
with:
python-version: '3.12'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Restore cached Poetry and Virtual Environment
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -104,6 +109,11 @@ jobs:
with:
python-version: '3.12'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Restore cached Poetry and Virtual Environment
uses: actions/cache@v3
with:
Expand Down

0 comments on commit ef2f713

Please sign in to comment.