Files
lutris/.github/workflows/static.yml
Zebra2711 cf3ee38071 update girepository dev for CI
Update dependency to libgintrospection2.0-dev for PyGObject 3.51.0 compatibility
2025-03-12 22:00:00 +07:00

48 lines
1.2 KiB
YAML

on: [push, pull_request]
name: Static Analysis
jobs:
mypy-checker:
name: Mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print current dir
run: pwd
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Ubuntu dependencies
run: |
sudo apt update
sudo apt-get install libdbus-1-dev pkg-config libgirepository-2.0-dev python3-gi-cairo libcairo2-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
make req-python
make dev
- name: Run mypy analysis
run: |
mypy --version
mypy .
ruff-checker:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
make dev
- name: Check code style
run: ruff --version
ruff check .
- name: Check format
run: ruff format . --check