diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 480633fb..7bee34c5 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -30,7 +30,7 @@ jobs: - name: ๐ŸŽจ Augment paths in README run: | - uv run python .github/scripts/augment_links.py README.md --branch ${{ github.head_ref || github.ref_name }} + python .github/scripts/augment_links.py README.md --branch ${{ github.head_ref || github.ref_name }} cat README.md - name: ๐Ÿ”— Link Checker @@ -45,9 +45,9 @@ jobs: - name: ๐Ÿ—๏ธ Build source and wheel distributions run: | - uv pip install -r pyproject.toml --group build + uv sync --frozen --group build uv build - uv run twine check --strict dist/* + twine check --strict dist/* - name: ๐Ÿ“ค Upload distribution artifacts uses: actions/upload-artifact@v6 diff --git a/.github/workflows/ci-build-docs.yml b/.github/workflows/ci-build-docs.yml index 2ab868fd..0be07182 100644 --- a/.github/workflows/ci-build-docs.yml +++ b/.github/workflows/ci-build-docs.yml @@ -31,7 +31,7 @@ jobs: activate-environment: true - name: ๐Ÿ—๏ธ Install dependencies - run: uv pip install -r pyproject.toml --group docs + run: uv sync --frozen --group docs - name: ๐Ÿงช Test Docs Build - run: uv run mkdocs build --verbose + run: mkdocs build --verbose diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 0405f33a..56c07309 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -42,13 +42,13 @@ jobs: activate-environment: true - name: ๐Ÿš€ Install Packages - run: uv pip install -r pyproject.toml --group dev --group docs --extra metrics + run: uv sync --frozen --group dev --group docs --extra metrics - name: ๐Ÿ“ฆ Run the Import test - run: uv run python -c "import supervision; from supervision import assets; from supervision import metrics; print(supervision.__version__)" + run: python -c "import supervision; from supervision import assets; from supervision import metrics; print(supervision.__version__)" - name: ๐Ÿงช Run the Test - run: uv run pytest src/ tests/ --cov=supervision --cov-report=xml + run: pytest src/ tests/ --cov=supervision --cov-report=xml - name: Generate Coverage Report run: | diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index ae7c4cf3..4113d27b 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -37,7 +37,7 @@ jobs: activate-environment: true - name: ๐Ÿ—๏ธ Install dependencies - run: uv pip install -r pyproject.toml --group docs + run: uv sync --frozen --group docs - name: โš™๏ธ Configure git for github-actions run: | @@ -49,7 +49,7 @@ jobs: env: MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }} run: | - uv run mike deploy --push develop + mike deploy --push develop - name: ๐Ÿš€ Deploy Release Docs if: github.event_name == 'release' && github.event.action == 'published' @@ -57,4 +57,4 @@ jobs: MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }} run: | latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) - uv run mike deploy --push --update-aliases $latest_tag latest + mike deploy --push --update-aliases $latest_tag latest