File tree 4 files changed +26
-20
lines changed
4 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
name : CI
5
5
6
- on : [push, pull_request]
6
+ on :
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ push :
11
+ branches :
12
+ - master
7
13
8
14
jobs :
9
15
lint :
10
- runs-on : ubuntu-latest
16
+ runs-on : ubuntu-24.04
11
17
steps :
12
18
- uses : actions/checkout@v4
13
19
- uses : actions/setup-python@v4
@@ -23,20 +29,20 @@ jobs:
23
29
- run : python -m tox -e lint
24
30
25
31
check-commits :
26
- if : github.event_name == ' pull_request'
32
+ if : ${{ github.event. pull_request.commits }}
27
33
runs-on : ubuntu-latest
28
34
env :
29
- SRPY_START_COMMIT : " ${{ github.event.pull_request.base.sha }}"
30
- SRPY_END_COMMIT : " ${{ github.event.pull_request.head.sha }}"
35
+ SRPY_COMMIT_RANGE : " HEAD~${{ github.event.pull_request.commits }}.."
31
36
steps :
32
37
- run : sudo apt-get install git make
33
38
- uses : actions/checkout@v4
34
39
with :
35
40
fetch-depth : 0
41
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
36
42
- run : make check-commits
37
43
38
44
test :
39
- runs-on : ubuntu-latest
45
+ runs-on : ubuntu-24.04
40
46
strategy :
41
47
matrix :
42
48
include :
67
73
- run : python -m tox -e ${{ matrix.toxenv }}
68
74
69
75
coverage :
70
- runs-on : ubuntu-latest
76
+ runs-on : ubuntu-24.04
71
77
steps :
72
78
- uses : actions/checkout@v4
73
79
- uses : actions/setup-python@v4
86
92
deploy :
87
93
needs : [lint, test]
88
94
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
89
- runs-on : ubuntu-latest
95
+ runs-on : ubuntu-24.04
90
96
steps :
91
97
- uses : actions/checkout@v4
92
98
- uses : actions/setup-python@v4
Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ tests:
12
12
format :
13
13
tox -e format
14
14
15
- SRPY_START_COMMIT ?= origin/master
16
- SRPY_END_COMMIT ?= HEAD
15
+ SRPY_COMMIT_RANGE ?= origin/master..
17
16
18
17
check-commits :
19
- ./check-commits.sh $(SRPY_START_COMMIT ) .. $( SRPY_END_COMMIT )
18
+ ./check-commits.sh $(SRPY_COMMIT_RANGE )
20
19
21
20
.PHONY : lint tests format check-commits
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ disable=
71
71
missing-docstring,
72
72
suppressed-message,
73
73
too-many-lines,
74
+ too-many-positional-arguments,
74
75
unnecessary-pass,
75
76
unused-argument,
76
77
use-implicit-booleaness-not-comparison-to-string,
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ basepython = python3
56
56
description = Format python code using isort and black.
57
57
changedir = .
58
58
deps =
59
- black~=23.12.1
60
- isort~=5.13.2
59
+ black~=25.1.0
60
+ isort~=6.0.0
61
61
skip_install = true
62
62
install_command = python3 -m pip install {opts} {packages}
63
63
allowlist_externals =
@@ -73,14 +73,14 @@ description = Run coding style checks.
73
73
install_command = {toxinidir}/tox-install.sh {toxworkdir} {opts} {packages}
74
74
changedir = .
75
75
deps =
76
- astroid~=3.0.2
77
- black~=23.12.1
78
- flake8~=7.0.0
79
- isort~=5.13.2
80
- pycodestyle~=2.11 .1
76
+ astroid~=3.3.8
77
+ black~=25.1.0
78
+ flake8~=7.1.1
79
+ isort~=6.0.0
80
+ pycodestyle~=2.12 .1
81
81
pyflakes~=3.2.0
82
- pylint~=3.0.3
83
- setuptools~=69.0.3
82
+ pylint~=3.3.4
83
+ setuptools~=75.8.0
84
84
allowlist_externals =
85
85
/bin/sh
86
86
/usr/bin/sh
You can’t perform that action at this time.
0 commit comments