refactor: Simplify implements #711
Workflow file for this run
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
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 0 * * 1' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: '3.11' | |
- name: Lint by pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] | |
sphinx-version: ['>=4.0.0,<5.0.0', '>=5.0.0,<5.1.0', '>=5.1.0,<6.0.0', '==6.*', '==7.*', '==8.*'] | |
exclude: | |
# Old major version does not support python>=3.10 | |
- python-version: '3.7' | |
sphinx-version: '==6.*' | |
- python-version: '3.7' | |
sphinx-version: '==7.*' | |
- python-version: '3.7' | |
sphinx-version: '==8.*' | |
- python-version: '3.8' | |
sphinx-version: '==8.*' | |
- python-version: '3.9' | |
sphinx-version: '==8.*' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python tools/fetch_revealjs.py | |
pip install '.[screenshot,test]' 'Sphinx[test]${{ matrix.sphinx-version }}' | |
playwright install | |
- if: ${{ matrix.sphinx-version == '>=4.0.0,<5.0.0' }} | |
run: pip install 'sphinxcontrib-applehelp<1.0.5' 'sphinxcontrib-devhelp<1.0.3' 'sphinxcontrib-htmlhelp<2.0.2' 'sphinxcontrib-serializinghtml<1.1.6' 'sphinxcontrib-qthelp<1.0.5' | |
- name: Run tests | |
run: | | |
pytest | |
buildtest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: '3.11' | |
- name: Build | |
run: | | |
pip install flit | |
python tools/fetch_revealjs.py | |
flit build | |
ls -l dist |