fix: use --no-sources in CI to resolve donglora from PyPI
This commit is contained in:
1 file changed
+4
-16
@@ -11,13 +11,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: donglora/client-py
|
|
||||||
path: ../client-py
|
|
||||||
- uses: astral-sh/setup-uv@v6
|
- uses: astral-sh/setup-uv@v6
|
||||||
- run: uv run ruff check .
|
- run: uv run --no-sources ruff check .
|
||||||
- run: uv run ruff format --check .
|
- run: uv run --no-sources ruff format --check .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -26,15 +22,11 @@ jobs:
|
|||||||
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: donglora/client-py
|
|
||||||
path: ../client-py
|
|
||||||
- uses: astral-sh/setup-uv@v6
|
- uses: astral-sh/setup-uv@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- run: uv sync
|
- run: uv sync --no-sources
|
||||||
- run: uv run pytest -v
|
- run: uv run --no-sources pytest -v
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: [lint, test]
|
needs: [lint, test]
|
||||||
@@ -45,10 +37,6 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: donglora/client-py
|
|
||||||
path: ../client-py
|
|
||||||
- uses: astral-sh/setup-uv@v6
|
- uses: astral-sh/setup-uv@v6
|
||||||
- run: uv build
|
- run: uv build
|
||||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
Reference in new issue
Block a user