-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: change poetry installation method
- Loading branch information
1 parent
11835d1
commit f332881
Showing
1 changed file
with
4 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,36 +19,12 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache Poetry | ||
id: cache-poetry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.poetry | ||
key: ${{ matrix.os }}-poetry | ||
|
||
- name: Install latest version of Poetry | ||
if: steps.cache-poetry.outputs.cache-hit != 'true' | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python - | ||
- name: Add Poetry to $PATH | ||
run: | | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Get Poetry version | ||
run: poetry --version | ||
- name: install poetry | ||
run: pipx install poetry | ||
|
||
- name: Check pyproject.toml validity | ||
run: poetry check --no-interaction | ||
|
||
- name: Cache dependencies | ||
id: cache-deps | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{github.workspace}}/.venv | ||
key: ${{ matrix.os }}-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: ${{ matrix.os }}- | ||
|
||
- name: Install deps | ||
if: steps.cache-deps.cache-hit != 'true' | ||
run: | | ||
|
@@ -73,36 +49,12 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache Poetry | ||
id: cache-poetry | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.poetry | ||
key: ${{ matrix.os }}-poetry | ||
|
||
- name: Install latest version of Poetry | ||
if: steps.cache-poetry.outputs.cache-hit != 'true' | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python - | ||
- name: Add Poetry to $PATH | ||
run: | | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Get Poetry version | ||
run: poetry --version | ||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Check pyproject.toml validity | ||
run: poetry check --no-interaction | ||
|
||
- name: Cache dependencies | ||
id: cache-deps | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{github.workspace}}/.venv | ||
key: ${{ matrix.os }}-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: ${{ matrix.os }}- | ||
|
||
- name: Install deps | ||
if: steps.cache-deps.cache-hit != 'true' | ||
run: | | ||
|