feat: define exclude_pattern per version #29
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: "Sphinx Multiversion Extension / Unit tests" | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "extensions/sphinx-multiversion/**" | |
push: | |
branches: | |
- master | |
paths: | |
- "extensions/sphinx-multiversion/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./extensions/sphinx-multiversion | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.7 | |
- name: Set up requirements | |
run: python -m pip install -r requirements.txt | |
- name: Setup extension | |
run: python setup.py install | |
- name: Run tests | |
run: python -m unittest --verbose |