add flake8 to poetry env #5
Workflow file for this run
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: Receive PR | |
# read-only repo token | |
# no access to secrets | |
on: | |
# Triggers the workflow on push events | |
push: | |
branches: [ develop, release/**, main, feature/**, issue/**, issues/** ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
pull_request: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- feature/** | |
- issue/** | |
- issues/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.2 | |
- name: Install concatenator | |
run: poetry install | |
- name: Lint | |
run: | | |
poetry run pylint concatenator | |
poetry run flake8 concatenator | |
- name: Test with pytest | |
run: | | |
poetry run pytest |