Skip to content

Commit

Permalink
mypy-abstracts: Add ci/tests/etc (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Aug 24, 2021
1 parent 0c5ba05 commit 8a7993f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ jobs:
strategy:
matrix:
package:
- pytest-patches
- abstracts
- aio.functional
- aio.subprocess
- aio.tasks
- abstracts
- envoy.base.utils
- envoy.base.runner
- envoy.base.checker
- envoy.github.abstract
- mypy-abstracts
- pytest-patches
python-version:
- 3.8
- 3.9
Expand All @@ -29,7 +30,7 @@ jobs:
- run: cd ${{ matrix.package }} && pip install -e . && pip install -e .[lint] && pip install -e .[types] && pip install -e .[test]
- name: Typing (${{ matrix.package }})
run: |
MYPYPATH=${{ matrix.package }} mypy --namespace-packages --explicit-package-bases -p ${{ matrix.package }}
MYPYPATH=${{ matrix.package }} mypy --namespace-packages --explicit-package-bases -p $(echo ${{ matrix.package }} | tr '-' '_')
- name: Test (${{ matrix.package }})
run: pytest --cov=${{ matrix.package }} ${{ matrix.package }}
- name: Doctest (${{ matrix.package }})
Expand Down Expand Up @@ -72,15 +73,16 @@ jobs:
strategy:
matrix:
package:
- pytest-patches
- abstracts
- aio.functional
- aio.subprocess
- aio.tasks
- abstracts
- envoy.base.utils
- envoy.base.runner
- envoy.base.checker
- envoy.github.abstract
- mypy-abstracts
- pytest-patches
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions mypy-abstracts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,4 @@ def read(fname):
'Operating System :: OS Independent',
'License :: OSI Approved :: Apache Software License',
],
entry_points={
'pytest11': [
'patches = pytest_patches',
],
},
)
6 changes: 6 additions & 0 deletions mypy-abstracts/tests/test_mypy_abstracts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from mypy_abstracts import plugin


def test_mypy_abstracts_plugin():
assert plugin

0 comments on commit 8a7993f

Please sign in to comment.