Remove kernelspec
from frontmatter of tutorials
#66
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- "dev*" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.10", "3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Update pip and install test dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ".[test]" | |
- name: Run tests | |
run: | | |
python -m pytest test | |
- name: Run doctests | |
if: | | |
matrix.python-version == '3.11' && | |
matrix.os == 'ubuntu-latest' | |
run: | | |
python -m doctest README.md | |
- name: Install and run linters | |
if: | | |
matrix.python-version == '3.11' && | |
matrix.os == 'ubuntu-latest' | |
run: | | |
python -m pip install ".[lint]" | |
python -m ruff check src test | |
python -m ruff format --check src test |