Adding type check for serve.py #2675
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: Code Format Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.7", "3.12"] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Hack to get setup-python to work on nektos/act | |
run: | | |
if [ ! -f "/etc/lsb-release" ] ; then | |
echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release | |
fi | |
- name: Set Up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Set Up Environment | |
run: | | |
make install-uv reset-venv | |
source .venv/bin/activate | |
make install-pinned-extras | |
- name: Run Format Check | |
run: | | |
source .venv/bin/activate | |
make format-check | |
- name: Run Type Check | |
run: | | |
source .venv/bin/activate | |
make type-check |