ci: switch to install poetry action
Some checks failed
Build Python Package / build (push) Failing after 34s
Some checks failed
Build Python Package / build (push) Failing after 34s
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo "Setting up Python and Poetry..."
|
|
||||||
|
|
||||||
# Install Poetry
|
|
||||||
pip install pipx
|
|
||||||
pipx install poetry
|
|
||||||
|
|
||||||
# Add Poetry to PATH
|
|
||||||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Configure Poetry
|
|
||||||
poetry config virtualenvs.create false
|
|
||||||
|
|
||||||
poetry check
|
|
||||||
|
|
||||||
poetry lock --check
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
poetry install --no-root --no-interaction
|
|
||||||
@@ -20,8 +20,11 @@ jobs:
|
|||||||
python-version: "3.13.1"
|
python-version: "3.13.1"
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
|
|
||||||
- name: Run setup script
|
- name: Install and configure Poetry
|
||||||
run: .gitea/scripts/setup-poetry.sh
|
uses: snok/install-poetry@v1
|
||||||
|
with:
|
||||||
|
virtualenvs-create: false
|
||||||
|
installer-parallel: true
|
||||||
|
|
||||||
- name: Check code formatting by black
|
- name: Check code formatting by black
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -19,8 +19,11 @@ jobs:
|
|||||||
python-version: "3.13.1"
|
python-version: "3.13.1"
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
|
|
||||||
- name: Run setup script
|
- name: Install and configure Poetry
|
||||||
run: .gitea/scripts/setup-poetry.sh
|
uses: snok/install-poetry@v1
|
||||||
|
with:
|
||||||
|
virtualenvs-create: false
|
||||||
|
installer-parallel: true
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: poetry build
|
run: poetry build
|
||||||
|
|||||||
Reference in New Issue
Block a user