Skip to content

Commit 0d77e90

Browse files
Skip some workflow steps when running pylint tests from astroid (#10897)
1 parent ae1c6c7 commit 0d77e90

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,13 @@ jobs:
101101
pip list | grep 'astroid\|pylint'
102102
python -m pytest --durations=10 --benchmark-disable --cov --cov-report= tests/
103103
- name: Run functional tests with minimal messages config
104+
if: inputs.astroid_sha == ''
104105
run: |
105106
. venv/bin/activate
106107
pip list | grep 'astroid\|pylint'
107108
python -m pytest -vv --minimal-messages-config tests/test_functional.py --benchmark-disable
108109
- name: Upload coverage artifact
109-
if: runner.os == 'Linux'
110+
if: runner.os == 'Linux' && inputs.astroid_sha == ''
110111
uses: actions/[email protected]
111112
with:
112113
name: coverage-${{ matrix.python-version }}
@@ -116,6 +117,7 @@ jobs:
116117
coverage:
117118
name: process / coverage
118119
runs-on: ubuntu-latest
120+
if: inputs.astroid_sha == ''
119121
timeout-minutes: 5
120122
needs: [tests]
121123
steps:
@@ -152,6 +154,7 @@ jobs:
152154
benchmark-linux:
153155
name: run benchmark / ${{ matrix.python-version }} / Linux
154156
runs-on: ubuntu-latest
157+
if: inputs.astroid_sha == ''
155158
timeout-minutes: 10
156159
needs: [tests]
157160
strategy:

0 commit comments

Comments
 (0)