@@ -22,15 +22,15 @@ jobs:
22
22
files : |
23
23
**.py
24
24
25
- - name : Set up Python 3.11
25
+ - name : Set up Python
26
26
if : steps.changed-python-files.outputs.any_changed == 'true'
27
27
uses : actions/setup-python@v5
28
28
with :
29
- python-version : 3.11
29
+ python-version-file : pyproject.toml
30
30
- name : Install ruff
31
31
if : steps.changed-python-files.outputs.any_changed == 'true'
32
32
run : |
33
- pip3 install ruff==0.1.14
33
+ pip3 install -r <(cat requirements_dev.txt | grep '^ ruff==')
34
34
- name : Run ruff
35
35
if : steps.changed-python-files.outputs.any_changed == 'true'
36
36
run : |
@@ -68,15 +68,15 @@ jobs:
68
68
files : |
69
69
**.py
70
70
71
- - name : Set up Python 3.11
71
+ - name : Set up Python
72
72
if : steps.changed-python-files.outputs.any_changed == 'true'
73
73
uses : actions/setup-python@v5
74
74
with :
75
- python-version : 3.11
75
+ python-version-file : pyproject.toml
76
76
- name : Install ruff
77
77
if : steps.changed-python-files.outputs.any_changed == 'true'
78
78
run : |
79
- pip3 install ruff==0.1.14
79
+ pip3 install -r <(cat requirements_dev.txt | grep '^ ruff==')
80
80
- name : Run ruff isort
81
81
if : steps.changed-python-files.outputs.any_changed == 'true'
82
82
run : |
@@ -114,15 +114,15 @@ jobs:
114
114
files : |
115
115
**.py
116
116
117
- - name : Set up Python 3.11
117
+ - name : Set up Python
118
118
if : steps.changed-python-files.outputs.any_changed == 'true'
119
119
uses : actions/setup-python@v5
120
120
with :
121
- python-version : 3.11
121
+ python-version-file : pyproject.toml
122
122
- name : Install ruff
123
123
if : steps.changed-python-files.outputs.any_changed == 'true'
124
124
run : |
125
- pip3 install ruff==0.1.14
125
+ pip3 install -r <(cat requirements_dev.txt | grep '^ ruff==')
126
126
- name : Run ruff
127
127
if : steps.changed-python-files.outputs.any_changed == 'true'
128
128
run : |
0 commit comments