Skip to content

Commit

Permalink
Add a few comments in the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DantasB committed Oct 8, 2024
1 parent 5a1810f commit ce70aed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
# Use abatilo/actions-poetry@v2 to install Poetry
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1

# Setup Local Virtual Environment if no poetry.toml file
- name: Setup Local Virtual Environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
# Load Cached Environment if it exists
- name: Load Cached Environment
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}

# Install Dependencies if no cached environment
- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
Expand Down

0 comments on commit ce70aed

Please sign in to comment.