| # Copyright 2019-2021 SkyWater PDK Authors |
| # |
| # 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 |
| # |
| # https://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. |
| # |
| # SPDX-License-Identifier: Apache 2.0 |
| |
| name: Checks Local |
| |
| on: |
| push: |
| pull_request: |
| |
| jobs: |
| |
| Run: |
| runs-on: ubuntu-latest |
| steps: |
| |
| - uses: actions/checkout@v2 |
| with: |
| fetch-depth: 0 |
| submodules: true |
| |
| - name: Setup environment. |
| run: make env |
| |
| - name: Linting Python |
| run: make lint-python |
| |
| - name: Check README.rst files are up to date |
| run: | |
| # Updating rst files |
| echo "::group::Updating rst files" |
| make update-rst |
| echo "::endgroup::" |
| echo |
| |
| # Check if there are any changes |
| if [[ -z "$(git status -s)" ]]; then |
| echo "Repository up to date!" |
| exit 0 |
| else |
| echo |
| git status -s |
| echo |
| echo "::group::Diffs" |
| git diff |
| echo "::endgroup::" |
| exit 1 |
| fi |