run ruff in the CI #1420
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: Check jobs consistency | |
on: [push] | |
jobs: | |
jobs-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: jobs-check | |
run: ./jobs.py check | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
pip install mypy | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: Check with mypy | |
run: mypy lib/ tests/ | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
pip install pyright | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: Check with pyright | |
run: pyright lib/ # tests/ | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
pip install ruff | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: Check with ruff | |
run: ruff check lib/ tests/ |