diff --git a/.github/workflows/code-checks.yaml b/.github/workflows/code-checks.yaml new file mode 100644 index 0000000..c715314 --- /dev/null +++ b/.github/workflows/code-checks.yaml @@ -0,0 +1,51 @@ +name: Code quality checks + +on: + push: + branches: + - main + pull_request: + +jobs: + + quality-checks: + + name: Quality checks + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + + steps: + + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Rye + uses: eifinger/setup-rye@v4 + with: + version: "latest" + + - name: Install Dependencies + run: | + echo ${{ matrix.python-version }} > .python-version + make setup + + - name: Check for typos + run: make spellcheck + + - name: Check the code style + run: make codestyle + + - name: Lint the code + run: make lint + + - name: Type check the code + run: make stricttypecheck + +### code-checks.yaml ends here