Skip to content

Commit d7c88ae

Browse files
committed
separate job for handling if
1 parent a14bf3b commit d7c88ae

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/main.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ jobs:
100100
python: "3.7"
101101
os: ubuntu-latest
102102
tox_env: "linting,docs,doctesting"
103-
- name: "mypy-diff"
104-
if: github.event_name == 'pull'
105-
python: "3.8"
106-
os: ubuntu-latest
107-
tox_env: "mypy-diff"
108-
skip_coverage: true
109103

110104
steps:
111105
- uses: actions/checkout@v1
@@ -182,3 +176,19 @@ jobs:
182176
run: |
183177
sudo apt-get install pandoc
184178
tox -e publish-gh-release-notes
179+
180+
mypy-diff:
181+
if: github.event_name == 'pull_request'
182+
runs-on: ubuntu-latest
183+
steps:
184+
- uses: actions/checkout@v1
185+
- name: Set up Python
186+
uses: actions/setup-python@v1
187+
with:
188+
python-version: "3.8"
189+
- name: Install dependencies
190+
run: |
191+
python -m pip install --upgrade pip
192+
pip install --upgrade wheel setuptools tox
193+
- name: tox -e mypy-diff
194+
run: "tox -e ${{ matrix.tox_env }}"

0 commit comments

Comments
 (0)