Skip to content

Commit 4db9f2d

Browse files
committed
gh: skip the steps, not the job for push jobs
AI-Assisted: no
1 parent c87bfb9 commit 4db9f2d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ jobs:
1919
commit:
2020
name: Check the validity of the commits
2121
runs-on: ubuntu-latest
22-
if: github.event_name == 'pull_request'
2322
# We follow the same contributing patterns as Wireshark. Thanks to
2423
# https://gitlab.com/wireshark/wireshark/-/blob/master/.gitlab-ci.yml
2524
steps:
2625
- name: Get the number of commits in the PR
2726
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
27+
if: github.event_name == 'pull_request'
2828
- name: Checkout Scapy
2929
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
32+
if: github.event_name == 'pull_request'
3233
- name: AI trailer reminder
3334
run: bash ./.config/ci/check_commits.sh
35+
if: github.event_name == 'pull_request'
3436
spdx:
3537
name: Check SPDX identifiers (Licensing)
3638
runs-on: ubuntu-latest

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Tox environments:
66
# py{version}-{os}-{non_root,root}
7-
# In our testing, version can be 37 to 314 or py39 for pypy39
7+
# In our testing, version can be 37 to 314 or py311 for pypy311
88

99
[tox]
1010
# minversion = 4.0

0 commit comments

Comments
 (0)