Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jan 22, 2025
1 parent c35b092 commit 4bba6e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,22 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
# Ensure the virtual environment is created before caching
poetry install
- uses: actions/cache@v4
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install the project dependencies
run: poetry install

migrations:
needs: cache
runs-on: ubuntu-latest
Expand All @@ -66,7 +67,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -148,7 +149,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -183,7 +184,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -218,7 +219,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -252,7 +253,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -295,7 +296,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down Expand Up @@ -334,7 +335,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bba6e6

Please sign in to comment.