1
0
Fork 0
mirror of https://github.com/correl/typesafe-monads.git synced 2025-04-10 17:00:13 -09:00

Merge branch 'master' into implement_set

This commit is contained in:
Samuele Reghenzi 2020-12-17 09:12:30 +01:00
commit d202550f04
3 changed files with 35 additions and 2 deletions
.github/workflows
monads
setup.py

View file

@ -9,7 +9,7 @@ on:
name: Build
jobs:
linting:
checking:
name: Lint & Test
runs-on: ubuntu-latest
steps:
@ -22,8 +22,10 @@ jobs:
python-version: "3.x"
- name: Install Dev dependencies
run: |
echo ${{github.ref}}
pip install pytest black mypy pytest-asyncio pytest-cov pytest-black pytest-mypy
pip install -e .
- name: Run Tests
run: python setup.py test
- uses: codecov/codecov-action@v1
@ -32,5 +34,34 @@ jobs:
flags: unittests
fail_ci_if_error: true
verbose: true
releasing:
name: Build Release
runs-on: ubuntu-latest
needs: checking
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
id: release
uses: rymndhng/release-on-push-action@v0.14.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump_version_scheme: patch
- name: Check Output Parameters
run: echo "Got version ${{ steps.release.outputs.tag_name }}"
- name: Print Version
run: |
sed -i '$ d' monads/__init__.py
echo "version='${{ steps.release.outputs.tag_name }}'" >> monads/__init__.py
sed -i '9s/.*/ version="${{ steps.release.outputs.tag_name }}",/' setup.py
- uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -7,3 +7,5 @@ from .maybe import Maybe, Just, Nothing
from .result import Result, Ok, Err
from .future import Future
from .reader import Reader
version='v0.0.5'

View file

@ -6,7 +6,7 @@ with open("README.md", "r") as f:
setup(
name="typesafe-monads",
version="0.9",
version="v0.0.5",
author="Correl Roush, Sam Reghenzi",
author_email="correl@gmail.com, sammyrulez@gmail.com",
description="Type-annotated monad implementations for Python 3.7+",