File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,28 @@ jobs:
16
16
path : keras-io
17
17
- uses : actions/checkout@v2
18
18
with :
19
+ # tensorflow/docs branch to save generated notebooks.
19
20
ref : snapshot-keras
20
- fetch-depth : 0
21
21
path : docs
22
22
- name : Set up repo
23
23
run : |
24
24
# Set commit author.
25
25
git config --global user.name "$GITHUB_ACTOR"
26
26
git config --global user.email "[email protected] "
27
- # Update branch.
28
- cd docs
29
- if ! git merge origin/master; then
30
- echo "[${GITHUB_WORKFLOW}] Unable to update from master branch." >&2
31
- exit 1
32
- fi
33
27
- name : Set up Python
34
28
uses : actions/setup-python@v2
29
+ with :
30
+ python-version : ' 3.8'
35
31
- name : Install requirements
36
32
run : |
33
+ python3 -m pip install -U pip
37
34
python3 -m pip install -U -r keras-io/requirements.txt
38
35
python3 -m pip install -U git+https://github.com/tensorflow/docs
39
36
- name : Generate Keras notebooks
40
37
run : |
38
+ # Autogen requires formated code
39
+ echo "[${GITHUB_WORKFLOW}] Format Python files ..."
40
+ python -m black keras-io/guides/
41
41
mkdir -p keras-io/tf # Make sure output dir exists.
42
42
cd keras-io/scripts/
43
43
echo "[${GITHUB_WORKFLOW}] Generate Keras guides ..."
You can’t perform that action at this time.
0 commit comments