-
Notifications
You must be signed in to change notification settings - Fork 98
45 lines (37 loc) · 1.13 KB
/
sphinx-dev-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Provides a manual action allowing developers to trigger a tox run
# against a specific version of Sphinx directly from Sphinx's official
# repository. This action can be used by this extension's maintainers
# as well as sphinx-contrib owners (if needed).
name: Sphinx Development Check
on:
workflow_dispatch:
inputs:
python:
description: 'Python interpreter'
required: true
default: '3.11'
sphinx:
description: 'Sphinx Revision'
required: true
default: 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ github.event.inputs.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ github.event.inputs.python }}
- name: Cache pip
uses: actions/cache@v4
id: cache-pip
with:
path: ~/.cache/pip
key: ubuntu-latest-${{ github.event.inputs.python }}-pip-
- name: Install dependencies
run: python -m pip install --upgrade tox
- name: tox
env:
SPHINX_VER: ${{ github.event.inputs.sphinx }}
run: tox -e develop