From b811967568f2309a9624167adf11ab0e456c0add Mon Sep 17 00:00:00 2001 From: Shubh Agarwal Date: Fri, 28 Jun 2024 01:13:27 -0400 Subject: [PATCH] github workflow for PR --- .github/workflows/pull_request.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pull_request.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..ecfff06 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,25 @@ +name: pull request +on: + pull_request: + push: + branches: [ main ] +jobs: + python: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Python 3.11 + uses: actions/setup-python@v3 + with: + python-version: '3.11' + - name: Install Requirements + run: + pip install -r requirements.txt + - name: Pylint + run: + pylint src/ + - name: Black + run: + black --check ./ + - name: Type Check (mypy) + run: mypy src --strict \ No newline at end of file