From c3828d905243dc8b0667b996b60d669e949e24a4 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 1 Jul 2025 09:22:42 +0100 Subject: [PATCH] :green_heart: Add a workflow --- .github/workflows/code-checks.yaml | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/code-checks.yaml 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