41 lines
914 B
YAML
41 lines
914 B
YAML
name: Run Tests & Linting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
pip install pytest flake8 black mypy pylint
|
|
|
|
# - name: Run Tests
|
|
# run: pytest tests/
|
|
|
|
- name: Run Linter (Flake8)
|
|
run: flake8 app/
|
|
continue-on-error: true
|
|
|
|
- name: Run Code Formatter (Black)
|
|
run: black --check app/
|
|
continue-on-error: true
|
|
|
|
- name: Run Type Checker (Mypy)
|
|
run: mypy app/
|
|
continue-on-error: true
|
|
|
|
- name: Run Linter (Pylint)
|
|
run: pylint app/
|
|
continue-on-error: true
|