-
Notifications
You must be signed in to change notification settings - Fork 120
41 lines (32 loc) 路 903 Bytes
/
Copy pathpython-linting.yml
File metadata and controls
41 lines (32 loc) 路 903 Bytes
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
37
38
39
40
41
name: Python Linting
on:
pull_request:
branches:
- master
paths:
- 'pyproject.toml'
- 'lithops/**'
- '.github/workflows/python-linting.yml'
workflow_dispatch:
# this allows to run the workflow manually through the github dashboard
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ruff:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone Lithops repository
uses: actions/checkout@v5
- name: Install Python 3.10
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install ruff==0.16.8 # same version as .pre-commit-config.yaml
- name: Lint with ruff
run: |
ruff check --output-format=github .