stacosys/.github/workflows/lint.yml
2022-04-25 20:58:55 +02:00

31 lines
No EOL
874 B
YAML

name: lint
on: push
jobs:
flake8_py3:
strategy:
fail-fast: false
matrix:
python-version: [3.9.9]
poetry-version: [1.1.12]
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}