Skip to content

Commit 5ce14ac

Browse files
committed
actions/tests: update deprecated actions
Signed-off-by: Claudio Usai <[email protected]>
1 parent ff56b88 commit 5ce14ac

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/integration-tests.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,19 @@ jobs:
2020
python-version: [3.8, 3.9]
2121
group: [1, 2, 3, 4]
2222
steps:
23-
- uses: actions/checkout@v2
2423

25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v2
27-
with:
28-
python-version: ${{ matrix.python-version }}
24+
- uses: actions/checkout@v4
2925

30-
- name: Install Poetry
31-
uses: snok/install-poetry@v1
32-
with:
33-
virtualenvs-create: true
34-
virtualenvs-in-project: true
26+
- name: Install poetry
27+
run: pipx install poetry==1.*
3528

36-
- name: Load cached venv
37-
id: cached-poetry-dependencies
38-
uses: actions/cache@v2
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v5
3931
with:
40-
path: .venv
41-
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
42-
43-
- name: Install dependencies
44-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
45-
run: poetry install --no-interaction --no-root
32+
python-version: ${{ matrix.python-version }}
33+
cache: 'poetry'
4634

47-
- name: Install library
35+
- name: Install dependencies and library
4836
run: poetry install --no-interaction
4937

5038
- name: Set up suzieq config
@@ -57,7 +45,7 @@ jobs:
5745
run: mkdir test_durations
5846

5947
- name: Get durations from cache
60-
uses: actions/cache@v2
48+
uses: actions/cache@v4
6149
with:
6250
path: test_durations
6351
# artificial cache miss to always save at the end of the job and avoid out of sync test runs
@@ -69,7 +57,7 @@ jobs:
6957
run: poetry run pytest --splits 4 --group ${{ matrix.group }} --store-durations --durations-path test_durations/.test_durations_${{ matrix.python-version }}
7058

7159
- name: Upload partial durations
72-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v4
7361
with:
7462
retention-days: 1
7563
name: duration-chunk-${{ matrix.group }}-python-${{ matrix.python-version }}
@@ -81,10 +69,10 @@ jobs:
8169
needs: test
8270
steps:
8371
- name: Checkout
84-
uses: actions/checkout@v2
72+
uses: actions/checkout@v4
8573

8674
- name: Get durations from cache
87-
uses: actions/cache@v2
75+
uses: actions/cache@v4
8876
with:
8977
path: test_durations
9078
# artificial cache miss to always save at the end of the job and avoid out of sync test runs
@@ -93,7 +81,7 @@ jobs:
9381
test-durations
9482
9583
- name: Download artifacts
96-
uses: actions/download-artifact@v2
84+
uses: actions/download-artifact@v4
9785

9886
- name: Merge test durations
9987
run: python3 tests/utilities/merge_test_durations_ci.py

0 commit comments

Comments
 (0)