15
15
lint :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+
19
22
- name : Set up Python 3.9
20
23
uses : actions/setup-python@v1
21
24
with :
@@ -40,15 +43,25 @@ jobs:
40
43
env :
41
44
GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY }}
42
45
46
+ - name : Check commit messages
47
+ if : github.event_name == 'pull_request'
48
+ run : |
49
+ if git log --format=%s "origin/$GITHUB_BASE_REF..origin/$GITHUB_HEAD_REF" | grep '^fixup!' ; then
50
+ echo 'Error: this pull request contains fixup commits. Squash them.'
51
+ exit 1
52
+ fi
53
+ # In case `git log` fails
54
+ exit "${PIPESTATUS[0]}"
55
+
43
56
build :
44
57
runs-on : ${{ matrix.os }}
45
58
strategy :
46
59
fail-fast : false
47
60
matrix :
48
61
os : [ubuntu-latest, macos-latest, windows-latest]
49
- python-version : ['3.7', '3. 8', '3.9', '3.10', '3.11']
62
+ python-version : ['3.8', '3.9', '3.10', '3.11']
50
63
steps :
51
- - uses : actions/checkout@v3
64
+ - uses : actions/checkout@v4
52
65
53
66
- name : Set up Python ${{ matrix.python-version }}
54
67
uses : actions/setup-python@v1
81
94
needs : [lint, build]
82
95
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
83
96
steps :
84
- - uses : actions/checkout@v3
97
+ - uses : actions/checkout@v4
85
98
with :
86
99
fetch-depth : 0
87
100
0 commit comments