From 204a95554cd49c9e6fc9e4d1bfc38f22bdbe57a7 Mon Sep 17 00:00:00 2001 From: David Liu Date: Tue, 23 Dec 2025 22:22:05 -0500 Subject: [PATCH] Updated GitHub Actions publish.yml to use uv --- .github/workflows/publish.yml | 47 ++++++++++------------------------- Changelog.md | 2 ++ 2 files changed, 15 insertions(+), 34 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c45c65e..f241755 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,45 +5,24 @@ on: types: [published] jobs: - build: - name: Build distribution 📦 - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: "3.x" - - name: Install pypa/build - run: >- - python3 -m - pip install - build - --user - - name: Build a binary wheel and a source tarball - run: python3 -m build - - name: Store the distribution packages - uses: actions/upload-artifact@v5 - with: - name: python-package-distributions - path: dist/ - pypi-publish: - name: Upload release to PyPI + run: + name: Publish package if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes - needs: - - build runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/markusapi permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + contents: read steps: - - name: Download all the dists - uses: actions/download-artifact@v6 + - uses: actions/checkout@v6 + - name: Install uv + uses: astral-sh/setup-uv@v7 with: - name: python-package-distributions - path: dist/ - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + enable-cache: true + - name: Install Python + run: uv python install + - name: Build the package + run: uv build + - name: Publish + run: uv publish diff --git a/Changelog.md b/Changelog.md index 5c9d549..a1cb105 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,8 @@ ## [unreleased] +- Adopt `uv` package manager and GitHub Actions for test and publish (#46, #47) + ## [0.4.0] - Fixed bug preventing creating/updating marks spreadsheets with nested grade items (#40) - Upgrade requests package (#43)