diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cbc130c4..23ee23d69 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: fail-fast: false matrix: python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + task: ['tests', 'typesafety'] steps: - uses: actions/checkout@v3 @@ -55,6 +56,7 @@ jobs: poetry run pip install -U pip - name: Run tests + if: matrix.task == 'tests' run: | poetry run flake8 . @@ -74,11 +76,14 @@ jobs: poetry run safety check --full-report poetry run python -m slotscheck returns --verbose + - name: Run typesafety tests + if: matrix.task == 'typesafety' + run: | # We do this to speed up the build: poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg - name: Upload coverage to Codecov - if: ${{ matrix.python-version }} == 3.8 + if: "matrix.task == 'tests' && matrix.python-version == 3.11" uses: codecov/codecov-action@v3 with: file: ./coverage.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ded1b56..8766c1d2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ incremental in minor, bugfixes only are patches. See [0Ver](https://0ver.org/). +## 0.21.0 + +### Features + +- Now requires `mypy>=1.4` +- Adds `[compatible-mypy]` extra for installation + + ## 0.20.1 ### Bugfixes diff --git a/pyproject.toml b/pyproject.toml index 8775f3de1..6738af0dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "returns" -version = "0.20.1" +version = "0.21.0" description = "Make your functions return something meaningful, typed, and safe!" license = "BSD-3-Clause"