Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: Language Server Package Distribution

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}}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
Loading