Skip to content

Commit

Permalink
More workflow tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Aug 22, 2023
1 parent 3f101b3 commit e34b67c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ jobs:
- python-version: '3.10'
pip-sphinx: '"sphinx<5"'
pytest-options: ''
# latest of sphinx 5.x series
- python-version: '3.11'
pip-sphinx: '"sphinx<6"'
pytest-options: ''
# latest of sphinx 6.x series
- python-version: '3.11'
pip-sphinx: '"sphinx<7"'
pytest-options: ''
# sphinx pre-release
- python-version: '3.11'
pip-sphinx: '--pre sphinx'
Expand All @@ -59,23 +67,23 @@ jobs:
- 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'
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.11'
- name: Check manifest
run: |
check-manifest
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.11'
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source
flake8 . --count --max-complexity=10
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.11'
- name: Type checking with mypy
run: mypy
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.11'
- name: Documentation
run: |
pushd doc && make html && popd
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.9'
if: matrix.pip-sphinx == 'sphinx' && matrix.python-version == '3.11'
- name: Test with pytest
run: |
coverage run -m pytest ${{ matrix.pytest-options }}
Expand Down

0 comments on commit e34b67c

Please sign in to comment.