diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25022df..26e515a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,32 +13,20 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: "pip" - cache-dependency-path: | - pyproject.toml - requirements-dev.txt - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt + - uses: astral-sh/setup-uv@v5 - name: Check that versions match id: version run: | echo "Release tag: [${{ github.event.release.tag_name }}]" - PACKAGE_VERSION=$(python -c "import reprexlite; print(reprexlite.__version__)") + PACKAGE_VERSION=$(uv run python -c "import reprexlite; print(reprexlite.__version__)") echo "Package version: [$PACKAGE_VERSION]" [ ${{ github.event.release.tag_name }} == "v$PACKAGE_VERSION" ] || { exit 1; } echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}" - name: Build package run: | - make dist + uv build - name: Publish to Test PyPI uses: pypa/gh-action-pypi-publish@v1.3.0