-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run mypy on GitHub actions based on GitHub Actions template for Python. - Remove mypy from azure pipelines. - Run on any change. - Add a status badge for GitHub Actions on mypy - Update mypy run. Author: adiroiban Reviewer: rodrigc Fixes: ticket:9903
- Loading branch information
Showing
5 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# GitHub actions Python based test runs. | ||
# | ||
# Available VMs: | ||
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners | ||
# | ||
# Example Python workflow | ||
# https://docs.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#starting-with-the-python-workflow-template | ||
name: mypy | ||
|
||
on: | ||
push: | ||
branches: [ trunk ] | ||
pull_request: | ||
branches: [ trunk ] | ||
|
||
jobs: | ||
test_run: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
tox -e mypy --notest | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python information | ||
run: | | ||
python --version | ||
python -c "import sys; print(sys.prefix)" | ||
python -c "import sys; print(sys.exec_prefix)" | ||
python -c "import sys; print(sys.executable)" | ||
python -c "import struct; print(struct.calcsize('P') * 8)" | ||
python -c 'print("\nENVIRONMENT VARIABLES\n=====================\n")' | ||
python -c "import os; [print(k, v) for k,v in os.environ.items()]" | ||
- name: Test with mypy | ||
run: | | ||
tox -q -e mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,3 @@ jobs: | |
py37: "3.7" | ||
py38: "3.8" | ||
reactor: iocp | ||
|
||
- template: 'mypy_jobs.yml' |
Empty file.