Make frontend maintainable again #5042
Workflow file for this run
This file contains 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: Python verifications | |
on: [push, pull_request] | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9"] | |
node-version: ["14"] | |
os: [ubuntu-20.04, windows-latest, macos-11] | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
- name: Install dependencies | |
run: pdm install | |
- name: Test Python packages | |
shell: bash | |
run: pdm run pytest --doctest-modules | |
- name: Test Python types (mypy) | |
shell: bash | |
run: pdm run mypy apps | |
- name: Python code style (black) | |
shell: bash | |
run: pdm run black src --check | |
- name: Python code style (pylint) | |
shell: bash | |
run: pdm run pylint $(git ls-files '*.py') | |
- name: validate that Test Course Json files are up to date | |
run: | | |
./scripts/verifyTestCourseJsonFiles.sh |