Skip to content

Commit

Permalink
chore: update actions to use poetry 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bdvllrs committed Jan 23, 2025
1 parent 67232db commit cebc0d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
id: cached-poetry
with:
path: ~/.local
key: poetry-0
key: poetry-1
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 2.0.1
- name: Poetry config
run: |
poetry config virtualenvs.create true
Expand All @@ -45,7 +47,7 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with test,dev,docs
run: poetry sync --no-interaction --with dev
- name: Create new branch
run: |
git config user.name "github-actions"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
id: cached-poetry
with:
path: ~/.local
key: poetry-0
key: poetry-1
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 2.0.1
- name: Poetry config
run: |
poetry config virtualenvs.create true
Expand All @@ -44,7 +46,7 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with test,dev,docs
run: poetry sync --no-interaction --with dev
- run: poetry run python ./docs/make.py
- uses: actions/upload-pages-artifact@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
id: cached-poetry
with:
path: ~/.local
key: poetry-0
key: poetry-1
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 2.0.1
- name: Poetry config
run: |
poetry config virtualenvs.create true
Expand All @@ -44,7 +46,7 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with test,dev,docs
run: poetry sync --no-interaction --with dev
- name: Ruff Formatting
run: poetry run ruff format --check
- name: Ruff Linter
Expand Down

0 comments on commit cebc0d8

Please sign in to comment.