Skip to content

Commit

Permalink
add new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Sep 11, 2024
1 parent 5ccd953 commit e4b2ea2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: flake8

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Package testing
name: pytest

on:
push:
Expand Down Expand Up @@ -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)
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e4b2ea2

Please sign in to comment.