Skip to content

push from actions

push from actions #9

name: Linter
on:
push:
branches:
- '**'
jobs:
cpu:
name: "PyLint test and Fix"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pyink
- name: Analysing the code with pyink
run: |
bash code_style.sh
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Commit changes from pyint
run: |
git add --all
git commit --amend --no-edit
git push --force