Skip to content

Add tests for the code blocks in Markdown files (courtesy of @tlambert03) #9

Add tests for the code blocks in Markdown files (courtesy of @tlambert03)

Add tests for the code blocks in Markdown files (courtesy of @tlambert03) #9

Workflow file for this run

name: Test docs
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_docs:
name: Test docs
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements-test.txt
- name: Test docs
run: |
python -m pytest -k test_tutorials --tb=short -s --color=yes --maxfail=5 --log-cli-level=0