mirror of
https://github.com/lutris/lutris.git
synced 2026-01-31 18:51:39 -05:00
48 lines
1.2 KiB
YAML
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
|