-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (33 loc) · 1.03 KB
/
mypy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: lint
on:
pull_request:
push:
branches: [main]
jobs:
lint:
strategy:
matrix:
python-version: ["3.8", "3.11"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: |
~/.cache/pip
$RUNNER_TOOL_CACHE/Python/*
~\AppData\Local\pip\Cache
key: ${{ runner.os }}-build-${{ matrix.python-version }}
- name: install-reqs
run: python -m pip install --upgrade mypy typing-extensions ruff
- name: run mypy
run: cd spec/API_specification && mypy dataframe_api && mypy examples
- name: run ruff format
run: cd spec/API_specification && ruff format dataframe_api examples --diff
- name: run ruff check
run: cd spec/API_specification && ruff check dataframe_api examples --no-fix