mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Add a CI test for unbuilt assets
Many of our PRs have out of date assets, making it hard to test the latest changes. This will at least throw an error on the PR when build assets aren't updated.
This commit is contained in:
parent
bc6e9f0766
commit
b85d3616dd
@ -1,5 +1,8 @@
|
||||
version: 2.1
|
||||
|
||||
orbs:
|
||||
untracked_changes: niteo/check-untracked-changes@1.0.0
|
||||
|
||||
commands:
|
||||
run-tox:
|
||||
description: "Run tox"
|
||||
@ -13,8 +16,21 @@ commands:
|
||||
- checkout
|
||||
- run: pip install --user tox
|
||||
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
|
||||
run-build:
|
||||
description: "Verify assets were built"
|
||||
steps:
|
||||
- checkout
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- untracked_changes/check:
|
||||
path: sphinx_rtd_theme/
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: 'cimg/python:3.9-node'
|
||||
steps:
|
||||
- run-build: {}
|
||||
py27:
|
||||
docker:
|
||||
- image: 'cimg/python:2.7'
|
||||
@ -50,6 +66,7 @@ workflows:
|
||||
version: 2
|
||||
tests:
|
||||
jobs:
|
||||
- build
|
||||
- py39
|
||||
- py38
|
||||
- py37
|
||||
|
Loading…
Reference in New Issue
Block a user