diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..6974f86 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,24 @@ +name: CD + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + + +jobs: + publish: + runs-on: ubuntu-latest + environment: + name: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v3 + - run: uv sync + - run: uv run ruff check pyenumerable test + - run: uv run pyright pyenumerable test + - run: uv run pytest -v --cov=pyenumerable.implementations --cov-report term-missing --cov-report term:skip-covered + - run: uv build + - run: uv publish --trusted-publishing always diff --git a/pyproject.toml b/pyproject.toml index ceaeec0..a98b731 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyenumerable" -version = "0.0.0" +version = "1.0.0" description = "Implementation of .net's IEnumerable interface in python W/ support for generics." readme = "readme.md" authors = [ diff --git a/readme.md b/readme.md index e5c3c6f..b4dcde4 100644 --- a/readme.md +++ b/readme.md @@ -38,8 +38,7 @@ Implementation of .NET's [IEnumerable](https://learn.microsoft.com/en-us/dotnet/ - [x] Select - [x] Max - [x] remove `Comparable` bind from type variables -- [ ] Make coherent use of `comparer` across methods -- [ ] Publish on pypi +- [x] Publish on pypi ### 1.1.0 - [ ] Improve test code quality - [ ] Add hashed pure python implementation of `Enumerable` (assuming inputs are guaranteed to be `Hashable` & immutable & not maintaining order)