fix: use --no-sources in CI to resolve donglora from PyPI

This commit is contained in:
swaits committed 2026-04-08 19:16:19 -06:00
1 parent 69a9f7136a
commit 3512c7c4e1
1 file changed
+4 -16
+4 -16
View File
@@ -11,13 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: donglora/client-py
path: ../client-py
- uses: astral-sh/setup-uv@v6
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run --no-sources ruff check .
- run: uv run --no-sources ruff format --check .
test:
runs-on: ubuntu-latest
@@ -26,15 +22,11 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: donglora/client-py
path: ../client-py
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- run: uv sync
- run: uv run pytest -v
- run: uv sync --no-sources
- run: uv run --no-sources pytest -v
publish:
needs: [lint, test]
@@ -45,10 +37,6 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: donglora/client-py
path: ../client-py
- uses: astral-sh/setup-uv@v6
- run: uv build
- uses: pypa/gh-action-pypi-publish@release/v1