Skip to content

Commit 02ebd2a

Browse files
committed
ci: fix pipeline failures by updating actions and adding missing dependencies
- Updated setup-python to v5, upload-artifact to v4, and codecov to v4 to resolve deprecation failures. - Added explicit installation of 'pytest-cov' in the test job. - Switched to newer versions of core GitHub Actions for better reliability.
1 parent 57d8da1 commit 02ebd2a

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/minimal-ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525
uses: actions/checkout@v4
2626

2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
cache: 'pip'
3232

3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36+
pip install pytest-cov
3637
pip install -e ".[dev]"
3738
3839
- name: Run tests
@@ -42,7 +43,7 @@ jobs:
4243
PYTHONPATH: src
4344

4445
- name: Upload coverage
45-
uses: codecov/codecov-action@v3
46+
uses: codecov/codecov-action@v4
4647
if: matrix.python-version == '3.11'
4748
with:
4849
files: ./coverage.xml
@@ -59,7 +60,7 @@ jobs:
5960
uses: actions/checkout@v4
6061

6162
- name: Set up Python
62-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6364
with:
6465
python-version: '3.11'
6566
cache: 'pip'
@@ -121,7 +122,7 @@ jobs:
121122
EOF
122123
123124
- name: Upload security reports
124-
uses: actions/upload-artifact@v3
125+
uses: actions/upload-artifact@v4
125126
if: always()
126127
with:
127128
name: security-reports
@@ -166,7 +167,7 @@ jobs:
166167
uses: actions/checkout@v4
167168

168169
- name: Set up Python
169-
uses: actions/setup-python@v4
170+
uses: actions/setup-python@v5
170171
with:
171172
python-version: '3.11'
172173
cache: 'pip'
@@ -199,7 +200,7 @@ jobs:
199200
uses: actions/checkout@v4
200201

201202
- name: Set up Python
202-
uses: actions/setup-python@v4
203+
uses: actions/setup-python@v5
203204
with:
204205
python-version: '3.11'
205206
cache: 'pip'

0 commit comments

Comments
 (0)