Skip to content

Commit

Permalink
Only run extra checks on latest install.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Jul 31, 2021
1 parent e5c2142 commit afa9637
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,29 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 check-manifest pytest codecov coverage mypy types-setuptools types-docutils
python -m pip install pytest codecov coverage
python -m pip install ${{ matrix.pip-sphinx }}
pip install .
- name: Install extra dependencies
run: |
python -m pip install flake8 check-manifest mypy types-setuptools types-docutils
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
- name: Check manifest
run: |
check-manifest
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source
flake8 . --count --exit-zero --max-complexity=10
mypy
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
- name: Type checking with mypy
run: mypy
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
- name: Documentation
run: |
pushd doc && make html && popd
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
- name: Test with pytest
run: |
coverage run -m pytest
Expand Down

0 comments on commit afa9637

Please sign in to comment.