Skip to content

Commit

Permalink
👷 See if we can run mypy differently in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Oct 6, 2023
1 parent 87ef92e commit e17d198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ jobs:
run: pip install tox tox-gh-actions

- name: Run checks
run: tox
env:
TYPE_CHECKING: 'true'
run: tox -e mypy

publish:
name: Publish package to PyPI
Expand Down
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{310,311}
py{310,311}-mypy
mypy
isort
black
flake8
Expand All @@ -13,18 +13,15 @@ python =
3.10: py310
3.11: py311

[gh-actions:env]
TYPE_CHECKING =
true: mypy

[testenv]
extras = dev
commands =
py.test tests \
--cov=ape_pie --cov-report xml:reports/coverage-{envname}.xml \
{posargs}

[testenv:py{310,311}-mypy]
[testenv:mypy]
basepython = python
extras = types
skipsdist = True
commands = mypy src
Expand Down

0 comments on commit e17d198

Please sign in to comment.