(2.1.1) migrate to uv
This commit is contained in:
parent
93d55cda47
commit
8cf60f653a
5 changed files with 1340 additions and 1837 deletions
|
@ -5,17 +5,20 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: docker
|
||||
container: www.coastalcommits.com/cswimr/actions:pyflowery
|
||||
container: www.coastalcommits.com/cswimr/actions:uv
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
run: uv install
|
||||
|
||||
- name: Build the package
|
||||
run: poetry build
|
||||
run: uv build
|
||||
|
||||
- name: Upload the package
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -38,25 +41,9 @@ jobs:
|
|||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
lint:
|
||||
name: Lint with Ruff & Pylint
|
||||
runs-on: docker
|
||||
container: www.coastalcommits.com/cswimr/actions:pyflowery
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install --with dev
|
||||
|
||||
- name: Analysing code with Ruff
|
||||
run: poetry run ruff check $(git ls-files '*.py')
|
||||
continue-on-error: true
|
||||
|
||||
- name: Analysing code with Pylint
|
||||
run: poetry run pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
|
||||
docs:
|
||||
runs-on: docker
|
||||
container: coastalcommits.com/cswimr/actions:pyflowery
|
||||
container: www.coastalcommits.com/cswimr/actions:uv
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -64,7 +51,27 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install --with docs
|
||||
run: uv sync
|
||||
|
||||
- name: Analysing code with Ruff
|
||||
run: uv run ruff check $(git ls-files '*.py')
|
||||
continue-on-error: true
|
||||
|
||||
- name: Analysing code with Pylint
|
||||
run: uv run pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
|
||||
docs:
|
||||
name: Build Documentation
|
||||
runs-on: docker
|
||||
container: coastalcommits.com/cswimr/actions:docs
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: uv sync --no-dev --optional=documentation
|
||||
|
||||
- name: Set environment variables
|
||||
uses: actions/env@v2
|
||||
|
@ -73,7 +80,7 @@ jobs:
|
|||
run: |
|
||||
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.pyflowery.coastalcommits.com"
|
||||
export EDIT_URI="src/branch/$CI_ACTION_REF_NAME/docs"
|
||||
poetry run mkdocs build -v
|
||||
uv run mkdocs build -v
|
||||
|
||||
- name: Deploy documentation
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue