From 4b3f22c0adac89417ed3be6d619f8c2fe9b449ef Mon Sep 17 00:00:00 2001 From: AYUSHMAN Mukherjee <127019874+ayush585@users.noreply.github.com> Date: Mon, 8 Sep 2025 23:22:55 +0530 Subject: [PATCH] Add CI workflow for tests and linting --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c903be0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' + cache-dependency-path: 'pyproject.toml' + - name: Install dependencies + run: | + pip install . flake8 black mypy + - name: flake8 + run: flake8 . + - name: black + run: black --check . + - name: mypy + run: mypy . + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' + cache-dependency-path: 'pyproject.toml' + - name: Install dependencies + run: | + pip install . pytest + - name: pytest + run: pytest