This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
Add warning that unmigrated models will be removed on March 18, 2024 #624
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
# Copyright 2020 The TensorFlow Hub Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# ============================================================================== | |
name: Documentation markdown validator | |
on: | |
pull_request: | |
push: | |
branches: [ master ] | |
jobs: | |
test-changed-md-files: | |
runs-on: ubuntu-latest | |
name: Test changed markdown documentation files. | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
- name: Install packages | |
run: | | |
pip install absl-py attrs tensorflow tensorflow_hub pyaml ruamel.yaml | |
pip freeze all | |
- name: Debug information | |
run: | | |
echo $(git status) | |
echo $(git branch) | |
echo $(git remote) | |
echo $(git diff origin/master --name-only) | |
echo $(ls) | |
- name: Run validator on changed files | |
run: | | |
git diff origin/master --name-only --relative=assets/docs | xargs python3.7 ./tools/validator.py | |
python3.7 ./tools/tags_validator_main.py |