Fix failing lint checks and update broken typings #83
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality and Tests | |
| on: | |
| push: | |
| branches: ["master", "main"] | |
| pull_request: | |
| jobs: | |
| pre_commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Pre-commit Dependencies | |
| run: pip install pre-commit | |
| - name: Run Pre-commit Hooks | |
| run: pre-commit run --all-files | |
| type_check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Test Dependencies | |
| run: pip install .[test] | |
| - name: Type Checking with Mypy | |
| run: mypy | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Test Dependencies | |
| run: pip install .[test] | |
| - name: Run Tests | |
| run: pytest --color=yes --cov=learnosity_sdk |