Skip to content

ci: Add test workflow #7

ci: Add test workflow

ci: Add test workflow #7

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
app-pylint:
name: pylint (App)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add pylint annotator
uses: pr-annotators/[email protected]
- name: Run pylint
run: poetry run pylint src
app-flake8:
name: flake8 (App)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add flake8 annotator
uses: rbialon/[email protected]
- name: Run flake8
run: poetry run flake8 src
app-mypy:
name: mypy (App)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add mypy annotator
uses: pr-annotators/[email protected]
- name: Run mypy
run: poetry run mypy src
tests-pylint:
name: pylint (Tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add pylint annotator
uses: pr-annotators/pylint-pr-annotator@main
- name: Run pylint
run: poetry run pylint tests
tests-flake8:
name: flake8 (Tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add pylint annotator
uses: rbialon/[email protected]
- name: Run pylint
run: poetry run flake8 tests
tests-mypy:
name: mypy (Tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: .github/actions/setup-python
- name: Add mypy annotator
uses: pr-annotators/[email protected]
- name: Run mypy
run: poetry run mypy tests