File tree Expand file tree Collapse file tree 6 files changed +77
-82
lines changed Expand file tree Collapse file tree 6 files changed +77
-82
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,15 @@ jobs:
26
26
python-version : ${{ matrix.python-version }}
27
27
- name : Install dependencies
28
28
run : |
29
- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
30
- icon pt -ic
31
- ~/.local/bin/poetry env use python3
29
+ curl -LsSf https://astral.sh/uv/install.sh | sh
32
30
cat pyproject.toml
33
- ~/.local/bin/poetry install
31
+ ~/.local/bin/uv sync
34
32
- name : Lint with ruff
35
33
run : |
36
- ~/.local/bin/poetry run ruff check pysparker/ tests/
34
+ ~/.local/bin/uv run ruff check pysparker/ tests/
37
35
- name : Lint with pytype
38
36
run : |
39
- ~/.local/bin/poetry run pytype ./
37
+ ~/.local/bin/uv run pytype ./
40
38
- name : Check code format
41
39
run : |
42
- ~/.local/bin/poetry run ruff format --check .
40
+ ~/.local/bin/uv run ruff format --check .
Original file line number Diff line number Diff line change @@ -16,13 +16,12 @@ jobs:
16
16
uses : actions/setup-python@v5
17
17
with :
18
18
python-version : " 3.12"
19
- - name : Install Poetry
19
+ - name : Install uv
20
20
run : |
21
- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
22
- icon pt -ic
21
+ curl -LsSf https://astral.sh/uv/install.sh | sh
23
22
- name : Build Package
24
23
run : |
25
- ~/.local/bin/poetry build
24
+ ~/.local/bin/uv build
26
25
- uses : " marvinpinto/action-automatic-releases@latest"
27
26
with :
28
27
repo_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ jobs:
16
16
uses : actions/setup-python@v5
17
17
with :
18
18
python-version : " 3.12"
19
- - name : Install Poetry
19
+ - name : Install uv
20
20
run : |
21
- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
22
- icon pt -ic
21
+ curl -LsSf https://astral.sh/uv/install.sh | sh
23
22
- name : Build and Pubblish Package to PyPI
24
23
run : |
25
- ~/.local/bin/poetry publish -- build -u __token__ -p ${{ secrets.PYPI_PYSPARKER }}
24
+ ~/.local/bin/uv build
26
25
ls -lha dist/
26
+ ~/.local/bin/uv publish -u __token__ -p ${{ secrets.PYPI_PYSPARKER }}
27
27
- uses : " marvinpinto/action-automatic-releases@latest"
28
28
with :
29
29
repo_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -25,13 +25,10 @@ jobs:
25
25
python-version : ${{ matrix.python-version }}
26
26
- name : Install dependencies
27
27
run : |
28
- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
29
- icon docker -ic --user-to-docker ""
30
- icon pt -ic
31
- ~/.local/bin/poetry env use python3
32
- ~/.local/bin/poetry install
28
+ curl -LsSf https://astral.sh/uv/install.sh | sh
29
+ ~/.local/bin/uv sync
33
30
brew install libmagic
34
31
brew link libmagic
35
32
- name : Test with pytest
36
33
run : |
37
- ~/.local/bin/poetry run pytest
34
+ ~/.local/bin/uv run pytest
Original file line number Diff line number Diff line change 24
24
python-version : ${{ matrix.python-version }}
25
25
- name : Install dependencies
26
26
run : |
27
- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
28
- icon pt -ic
29
- ~/.local/bin/poetry env use python3
30
- ~/.local/bin/poetry install
27
+ curl -LsSf https://astral.sh/uv/install.sh | sh
28
+ ~/.local/bin/uv sync
31
29
- name : Test with pytest
32
30
run : |
33
- ~/.local/bin/poetry run pytest
31
+ ~/.local/bin/uv run pytest
You can’t perform that action at this time.
0 commit comments