diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 28e9b5c..3e8a362 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,4 +1,4 @@ -name: lint +name: flake8 on: push: diff --git a/.github/workflows/python-package.yml b/.github/workflows/testing.yml similarity index 88% rename from .github/workflows/python-package.yml rename to .github/workflows/testing.yml index 844acb5..6a9e32e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/testing.yml @@ -1,4 +1,4 @@ -name: Package testing +name: pytest on: push: @@ -27,10 +27,6 @@ jobs: python -m pip install --upgrade pip python -m pip install -r requirements.txt - - name: Type check with mypy - run: | - mypy BharatFinTrack - - name: Test with pytest run: | export PYTHONPATH=$(pwd) diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml new file mode 100644 index 0000000..b722ac9 --- /dev/null +++ b/.github/workflows/typing.yml @@ -0,0 +1,32 @@ +name: mypy + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install mypy + + - name: Type check with mypy + run: | + mypy BharatFinTrack