inverse tensor #1162
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
name: Lint | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
- name: Clone gpt | |
uses: actions/checkout@v3 | |
- name: Install linters | |
id: install-linters | |
run: pip install flake8 black # cpplint | |
# - name: Run cpplint | |
# if: always() | |
# run: | | |
# cpplint --extensions=cc,h --headers=h --recursive . | |
- name: Run black | |
if: always() | |
run: | | |
black --check -q lib/gpt || exit_code=$? | |
if [[ "${exit_code}" -ne "0" ]]; then | |
black --diff -q lib/gpt | |
fi | |
- name: Run flake8 | |
if: always() | |
run: | | |
flake8 \ | |
--format="::error file=%(path)s,line=%(row)s,col=%(col)s::%(code)s:%(text)s" \ | |
lib/gpt > tmp_flake.log || true | |
cat tmp_flake.log |