[cir2cir-dredd-recp-test] Test for remove mul/div (#16085) #20039
This file contains hidden or 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
name: Check code format | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
pull_request: | |
branches: | |
- master | |
- release/* | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check-format: | |
name: Check format | |
runs-on: ubuntu-24.04 | |
if: github.repository_owner == 'Samsung' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
# C format: clang-format-16 | |
# Python format: yapf==0.43.0 | |
- name: Install packages | |
run: | | |
sudo apt-get update && sudo apt-get install -qqy clang-format-16 | |
pip install yapf==0.43.0 | |
- name: Check | |
run: ./nnas format | |
# Upload patch file if failed | |
- name: Store archive | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: format-patch | |
path: format.patch | |
retention-days: 3 | |
# Refer https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions | |
- name: Check workflow files | |
uses: docker://rhysd/actionlint:latest | |
with: | |
args: -color | |
check-copyright: | |
name: Check copyright | |
runs-on: ubuntu-22.04 | |
if: github.repository_owner == 'Samsung' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Fetch all history and branch (default: 1) | |
# Require all history to get file creation date | |
fetch-depth: 0 | |
- name: Check copyright | |
run: ./nnas copyright-check |