File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ name: Test local Playground
3
3
on :
4
4
push :
5
5
branches : [ "main" ]
6
- paths : [ "mkdocs/docs/playground/**", ".github/workflows/local-playground-test.yml" ]
6
+ paths : &paths
7
+ - mkdocs/docs/playground/**
8
+ - mkdocs/docs/serve-no-livereload.sh
9
+ - .github/workflows/local-playground-test.yml
7
10
pull_request :
8
11
branches : [ "main" ]
9
- paths : [ "mkdocs/docs/playground/**", ".github/workflows/local-playground-test.yml" ]
12
+ paths : *paths
10
13
workflow_dispatch :
11
14
12
15
jobs :
Original file line number Diff line number Diff line change 5
5
# Go to the directory with this script
6
6
cd " $( dirname " $( readlink -f " $0 " ) " ) "
7
7
8
- # Create a Python virtualenv if it does not exist yet
9
- if ! test -d env; then
10
- virtualenv -p python3 env
8
+ # Create a Python virtualenv if we have the tool installed
9
+ # and it does not exist yet.
10
+ if which virtualenv; then
11
+ if ! test -d env; then
12
+ virtualenv -p python3 env
13
+ fi
14
+ source env/bin/activate
11
15
fi
12
16
13
17
# Serve the website without live reloading (useful for tests)
14
- source env/bin/activate
15
18
pip install -r requirements.txt
16
19
mkdocs serve --no-livereload
You can’t perform that action at this time.
0 commit comments