Skip to content

Commit ba4654c

Browse files
committed
feat(pylint): dont run on master or dev
1 parent d278924 commit ba4654c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/python.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929

3030
init:
3131
name: Meta
32-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
3332
runs-on: ubuntu-latest
3433
outputs:
3534
changed-files: ${{ steps.changed-files.outputs.project_all_changed_files }}
@@ -78,6 +77,7 @@ jobs:
7877

7978
- name: Get all files that have changed
8079
id: changed-files
80+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
8181
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
8282
with:
8383
files: |
@@ -101,7 +101,6 @@ jobs:
101101
102102
lint:
103103
name: Lint
104-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
105104
needs:
106105
- init
107106
runs-on: ubuntu-latest
@@ -113,15 +112,18 @@ jobs:
113112

114113

115114
- uses: actions/checkout@v4
115+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
116116

117117

118118
- name: Set up Python ${{ matrix.python-version }}
119+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
119120
uses: actions/setup-python@v5
120121
with:
121122
python-version: ${{ matrix.python-version }}
122123

123124

124125
- name: Install Dependencies ${{ matrix.python-version }}
126+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
125127
run: |
126128
python -m pip install --upgrade pip
127129
pip install -r requirements.txt

0 commit comments

Comments
 (0)