Citi / scaler

Efficient, lightweight and reliable distributed computation engine
Apache License 2.0
7 stars 3 forks source link

Enable Run test suite and Linter as workflow #7

Closed sharpener6 closed 4 weeks ago

sharpener6 commented 1 month ago

This will requires strict checking on PEP8 and mypy errors and of course all the unit test cases, please add following to actions, all the mypy/flake8 arguments should be defined in pyproject.toml:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - name: Set up Python 3.8
        uses: actions/setup-python@v3
        with:
          python-version: "3.8"
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install flake8 pyproject-flake8 mypy
          pip install -r requirements.txt
      - name: Lint with flake8
        run: |
          pflake8 .
      - name: Lint with MyPy
        run: |
          mypy .
      - name: Run python unittest
        run: |
          python -m unittest discover -v tests
JamieSlome commented 1 month ago

@sharpener6 - can we get a description for this issue? What are the requirements here?

sharpener6 commented 1 month ago

Solve this along in #6

sharpener6 commented 1 month ago

@sharpener6 - can we get a description for this issue? What are the requirements here?

@JamieSlome , the #6 should along will solve this issue, can you review it? thanks