Skip to content

Commit e501381

Browse files
committed
pr: fix actions deprecation warnings
AI-Assisted: no
1 parent 3695ea2 commit e501381

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Checkout Scapy
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
4040
- name: Launch script
4141
run: bash scapy/tools/check_spdx.sh
4242
health:
@@ -45,9 +45,9 @@ jobs:
4545
needs: [commit, spdx]
4646
steps:
4747
- name: Checkout Scapy
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v6
4949
- name: Setup Python
50-
uses: actions/setup-python@v5
50+
uses: actions/setup-python@v6
5151
with:
5252
python-version: "3.12"
5353
- name: Install tox
@@ -63,15 +63,15 @@ jobs:
6363
docs:
6464
# 'runs-on' and 'python-version' should match the ones defined in .readthedocs.yml
6565
name: Build doc
66-
runs-on: ubuntu-22.04
66+
runs-on: ubuntu-24.04
6767
needs: [commit, spdx]
6868
steps:
6969
- name: Checkout Scapy
70-
uses: actions/checkout@v4
70+
uses: actions/checkout@v6
7171
- name: Setup Python
72-
uses: actions/setup-python@v5
72+
uses: actions/setup-python@v6
7373
with:
74-
python-version: "3.12"
74+
python-version: "3.14"
7575
- name: Install tox
7676
run: pip install tox
7777
- name: Build docs
@@ -82,9 +82,9 @@ jobs:
8282
needs: [commit, spdx]
8383
steps:
8484
- name: Checkout Scapy
85-
uses: actions/checkout@v4
85+
uses: actions/checkout@v6
8686
- name: Setup Python
87-
uses: actions/setup-python@v5
87+
uses: actions/setup-python@v6
8888
with:
8989
python-version: "3.12"
9090
- name: Install tox
@@ -102,7 +102,7 @@ jobs:
102102
fail-fast: false
103103
matrix:
104104
os: [ubuntu-latest]
105-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
105+
python: ["3.8", "3.9", "3.10", "3.11", "3.13"]
106106
mode: [non_root]
107107
installmode: ['']
108108
flags: [" -K scanner"]
@@ -115,7 +115,7 @@ jobs:
115115
flags: " -K scanner"
116116
# Linux root tests on last version
117117
- os: ubuntu-latest
118-
python: "3.13"
118+
python: "3.14"
119119
mode: root
120120
flags: " -K scanner"
121121
# PyPy tests: root only
@@ -125,23 +125,23 @@ jobs:
125125
flags: " -K scanner"
126126
# Libpcap test
127127
- os: ubuntu-latest
128-
python: "3.13"
128+
python: "3.14"
129129
mode: root
130130
installmode: 'libpcap'
131131
flags: " -K scanner"
132132
# macOS tests
133133
- os: macos-14
134-
python: "3.13"
134+
python: "3.14"
135135
mode: both
136136
flags: " -K scanner"
137137
# windows tests
138138
- os: windows-latest
139-
python: "3.13"
139+
python: "3.14"
140140
mode: root
141141
flags: " -K scanner"
142142
# Scanner tests
143143
- os: ubuntu-latest
144-
python: "3.13"
144+
python: "3.14"
145145
mode: root
146146
allow-failure: 'true'
147147
flags: " -k scanner"
@@ -150,23 +150,23 @@ jobs:
150150
mode: root
151151
flags: " -k scanner"
152152
- os: macos-14
153-
python: "3.13"
153+
python: "3.14"
154154
mode: both
155155
allow-failure: 'true'
156156
flags: " -k scanner"
157157
- os: windows-latest
158-
python: "3.13"
158+
python: "3.14"
159159
mode: both
160160
allow-failure: 'true'
161161
flags: " -k scanner"
162162
steps:
163163
- name: Checkout Scapy
164-
uses: actions/checkout@v4
164+
uses: actions/checkout@v6
165165
# Codecov requires a fetch-depth > 1
166166
with:
167167
fetch-depth: 2
168168
- name: Setup Python
169-
uses: actions/setup-python@v5
169+
uses: actions/setup-python@v6
170170
with:
171171
python-version: ${{ matrix.python }}
172172
- name: Install Tox and any other packages (linux/osx)
@@ -197,11 +197,11 @@ jobs:
197197
needs: [commit, spdx]
198198
steps:
199199
- name: Checkout repository
200-
uses: actions/checkout@v4
200+
uses: actions/checkout@v6
201201
- name: Setup Python
202-
uses: actions/setup-python@v5
202+
uses: actions/setup-python@v6
203203
with:
204-
python-version: "3.12"
204+
python-version: "3.14"
205205
- name: Install tox
206206
run: pip install tox
207207
# pyca/cryptography's CI installs cryptography
@@ -220,12 +220,12 @@ jobs:
220220
security-events: write
221221
steps:
222222
- name: Checkout repository
223-
uses: actions/checkout@v4
223+
uses: actions/checkout@v6
224224
with:
225225
fetch-depth: 2
226226
- name: Initialize CodeQL
227-
uses: github/codeql-action/init@v3
227+
uses: github/codeql-action/init@v4
228228
with:
229229
languages: 'python'
230230
- name: Perform CodeQL Analysis
231-
uses: github/codeql-action/analyze@v3
231+
uses: github/codeql-action/analyze@v4

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ formats:
1212
- pdf
1313

1414
build:
15-
os: ubuntu-22.04
15+
os: ubuntu-24.04
1616
tools:
17-
python: "3.12"
17+
python: "3.14"
1818
# To show the correct Scapy version, we must unshallow
1919
# https://docs.readthedocs.io/en/stable/build-customization.html#unshallow-git-clone
2020
jobs:

0 commit comments

Comments
 (0)