From d829276347c5391a9d2233e56e30300b69172d14 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Sat, 14 Dec 2024 17:08:49 -0600 Subject: [PATCH] Fixed more uv run workflows --- .github/workflows/test.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 956f8f02..32920cc1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,7 +42,7 @@ jobs: run: | uv sync -p 3.12 --group dev --group test - name: Test - run: pytest --cov-report=xml + run: uv run pytest --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: @@ -60,19 +60,16 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.PAT }} ref: ${{ github.head_ref }} - - uses: actions/setup-python@v5 + - uses: ./.github/actions/setup-python-and-git with: - python-version: '3.11' - cache: 'pip' # caching pip dependencies + python-version: "3.12" - name: Install requirements shell: bash run: | - python -m pip install --disable-pip-version-check --no-python-version-warning build - python -m pip install --disable-pip-version-check --no-python-version-warning -e . + uv sync -p 3.12 --group dev - name: Set dev version shell: bash @@ -80,17 +77,14 @@ jobs: export PR_NUMBER=$(gh pr view --json number -q .number || echo "") echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV echo "::notice::PR_NUMBER is: ${PR_NUMBER}" - bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v - env: - GH_TOKEN: ${{ secrets.PAT }} + uv run bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v - name: Package shell: bash run: | - python -m build + uv build - name: Upload package to Test PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/