Skip to content

Python versions & testing OS's #104

Python versions & testing OS's

Python versions & testing OS's #104

Workflow file for this run

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: ubuntu-24.04
strategy:
matrix:
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 }}
- run: pip install .[test]
- run: pip install "myst-parser${{ matrix.myst-parser-version }}"
# Run pytest
- run: pytest -vv --cov sphinxcontrib
# Also try building the docs in the docs directory
- run: pip install sphinx_rtd_theme
- run: cd docs && make dirhtml
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github