GitHub Actions fixes, Python versions supported & OS's tested on #107
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: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ubuntu-latest | ||
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13'] | ||
myst-parser-version: [ '<0.18.0', '>=0.18.0' ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
- run: pip install .[test] | ||
- run: pip install "myst-parser${{ matrix.myst-parser-version }}" | ||
# Run pytest | ||
- run: pytest -vv sphinxcontrib | ||
# Also try building the docs in the docs directory | ||
- run: pip install sphinx_rtd_theme | ||
- run: cd docs && make dirhtml |