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:
commit
d202550f04
3 changed files with 35 additions and 2 deletions
33
.github/workflows/build.yaml
vendored
33
.github/workflows/build.yaml
vendored
|
@ -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 }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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+",
|
||||
|
|
Loading…
Add table
Reference in a new issue