Skip to content

Add workflow file for GitHub actions #1

Add workflow file for GitHub actions

Add workflow file for GitHub actions #1

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pylint mypy pytest
- name: Install investir
run: |
python -m pip install --upgrade pip
pip install --editable .
- name: Run Flake8
run: |
flake8 .
- name: Run Pylint
run: |
pylint $(git ls-files '*.py')
- name: Run Mypy
run: |
mypy . --install-types
- name: Run Pytest
run: |
pytest