Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,39 @@ jobs:
pip install -U pip
pip install --upgrade coveralls setuptools setuptools_scm pep517 .[tests]
pip install .
- name: Mypy testing (<3.11)

- name: Mypy testing (<3.8)
run: |
echo ${{ matrix.python-version }}
pip install mypy==0.910
python -m mypy executing --exclude=executing/_position_node_finder.py
python -m mypy executing --exclude 'executing/_.*_node_finder.py'
# fromJson because https://github.community/t/passing-an-array-literal-to-contains-function-causes-syntax-error/17213/3
if: ${{ !contains(fromJson('["2.7", "pypy2", "pypy-3.6", "3.11-dev"]'), matrix.python-version) }}
if: ${{ contains(fromJson('["3.5","3.6","3.7"]'), matrix.python-version) }}
# pypy < 3.8 very doesn't work
# 2.7 is tested separately in mypy-py2, as we need to run mypy under Python 3.x

- name: Mypy testing (<3.11)
run: |
pip install mypy==0.910
python -m mypy executing --exclude=executing/_position_node_finder.py
# fromJson because https://github.community/t/passing-an-array-literal-to-contains-function-causes-syntax-error/17213/3
if: ${{ contains(fromJson('["3.8","3.9","3.10"]'), matrix.python-version) }}

- name: Mypy testing (3.11)
run: |
pip install mypy==0.971
python -m mypy executing
# fromJson because https://github.community/t/passing-an-array-literal-to-contains-function-causes-syntax-error/17213/3
if: ${{ contains(fromJson('["3.11-dev"]'), matrix.python-version) }}
if: ${{ contains(fromJson('["3.11.1"]'), matrix.python-version) }}
# only >=3.11 use _position_node_finder.py

- name: Test
env:
EXECUTING_SLOW_TESTS: 1
run: |
coverage run --include=executing/executing.py --append -m pytest tests
export COVERAGE_PROCESS_START=${GITHUB_WORKSPACE}/setup.cfg
coverage run -m pytest tests
coverage combine
coverage report -m
- name: Coveralls Python
uses: AndreMiras/coveralls-python-action@v20201129
Expand Down Expand Up @@ -75,4 +88,4 @@ jobs:
pip install mypy[python2]==0.910
- name: Mypy testing for Python 2
run: |
python -m mypy --py2 executing --exclude=executing/_position_node_finder.py
python -m mypy --py2 executing --exclude 'executing/_.*_node_finder.py'
221 changes: 221 additions & 0 deletions Features.md

Large diffs are not rendered by default.

Loading