Skip to content

Commit

Permalink
separate job for handling if
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 17, 2020
1 parent 4a446fd commit 6c5a8d0
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ jobs:
python: "3.7"
os: ubuntu-latest
tox_env: "linting,docs,doctesting"
- name: "mypy-diff"
if: github.event_name == 'pull'
python: "3.8"
os: ubuntu-latest
tox_env: "mypy-diff"
skip_coverage: true

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -180,3 +174,19 @@ jobs:
run: |
sudo apt-get install pandoc
tox -e publish-gh-release-notes
mypy-diff:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel setuptools tox
- name: tox -e mypy-diff
run: "tox -e mypy-diff"

0 comments on commit 6c5a8d0

Please sign in to comment.