Files
Twitch-Drops-Miner/.github/workflows/code-checker.yml
dependabot[bot] 5ab4a04e71 Bump actions/setup-python from 2 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 15:30:22 +00:00

39 lines
922 B
YAML

name: code-checker
on:
push:
branches: [master]
pull_request:
jobs:
static-check-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- name: Clone Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
pip3 install --upgrade pip
pip3 install pyflakes
pip3 install black
pip3 install isort
- name: Detect errors with pyflakes
run: pyflakes TwitchChannelPointsMiner
- name: Lint with black
run: black TwitchChannelPointsMiner --check --diff
- name: Lint with isort
run: isort TwitchChannelPointsMiner --profile black --check --diff