From f428e75cf619534c3ac7c6a369361acb1d871333 Mon Sep 17 00:00:00 2001 From: Tobiky <12644606+Tobiky@users.noreply.github.com> Date: Mon, 18 Aug 2025 15:04:10 +0200 Subject: [PATCH 1/4] misc: Reduce MSPV to 3.11 based on vermin output vermin tool aquired through pypi and ran through uv --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0f34978..b3815f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "malls" version = "0.1.0" description = "Language server for MAL" readme = "README.md" -requires-python = ">=3.13" +requires-python = ">=3.11" authors = [{ name = "Tobiky", email = "me@tobiky.dev" }] urls = { github = "https://github.com/Tobiky/mal-ls" } From 4a0e6deffc8da5ec7ca955f29e249975c649e57f Mon Sep 17 00:00:00 2001 From: Tobiky <12644606+Tobiky@users.noreply.github.com> Date: Mon, 18 Aug 2025 16:02:05 +0200 Subject: [PATCH 2/4] feat: Publish to PyPI via UV and GitHub secrets --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..15873f2 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ + +name: Language Server Tests + +on: + push: + tags: ["*"] + +jobs: + language-server-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup environment + # Actions use only the folder name (with an action.yml inside) + # https://github.com/orgs/community/discussions/26245#discussioncomment-5962450 + # https://docs.github.com/en/actions/tutorials/creating-a-composite-action#creating-an-action-metadata-file + uses: ./.github/actions/py-setup + + - name: Build package + run: uv build + + - name: Publish package + run: uv publish + secrets: + UV_PUBLISH_TOKEN: ${{secrets.PYPI_API_TOKEN}} From be91eaf734158df0dc316538a13924600930ccc4 Mon Sep 17 00:00:00 2001 From: Tobiky <12644606+Tobiky@users.noreply.github.com> Date: Mon, 18 Aug 2025 16:03:13 +0200 Subject: [PATCH 3/4] docs: Summarise GitHub workflow in main README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 02d5ccf..abfc0ca 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,9 @@ Other start-up arguments, namely related to logging, can be found using `uv run ``` > [!NOTE] > Tested for NeoVim v0.11.1 + +## CI/CD + +Packages are published via UV on ubuntu to PyPI on tags pushed to the repository. + +Tests are ran with pytest and pytest-xdist on ubuntu and macos. Additionally formatting and linting checks are ran with ruff. From f452a054550cea74e6f2cfd34cefcf76b4412813 Mon Sep 17 00:00:00 2001 From: Tobiky <12644606+Tobiky@users.noreply.github.com> Date: Thu, 28 Aug 2025 18:47:43 +0200 Subject: [PATCH 4/4] fix: Publish workflow not renamed --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 15873f2..e449bd7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,5 @@ -name: Language Server Tests +name: Language Server Package Distribution on: push: