Skip to content

Commit 55f5a0e

Browse files
authored
Merge pull request #170 from nirtal85/pre-commit
fix: consolidate pre commit
2 parents e7975ad + d96847d commit 55f5a0e

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/devRun.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@ jobs:
2323
virtualenvs-in-project: true
2424
installer-parallel: true
2525
virtualenvs-path: .venv
26-
- name: Load cached venv
27-
id: cached-poetry-dependencies
28-
uses: actions/cache@v4
29-
with:
30-
path: .venv
31-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
3226
- name: Install Dependencies
33-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3427
run: poetry install --no-interaction --no-root
3528
- name: Install Playwright Browsers
3629
run: npx playwright install --with-deps
3730
- name: Test with pytest
3831
run: |
3932
source .venv/bin/activate
4033
xvfb-run pytest -m devRun --base-url ${{ vars.BASE_URL }}
34+
- name: Cache dependencies if tests pass
35+
if: success()
36+
uses: actions/cache/save@v4
37+
with:
38+
path: .venv
39+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4140
- name: Auto-assign reviewers
4241
uses: kentaro-m/auto-assign-action@v2.0.0
4342
if: success()

renovate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
"extends": [
44
"config:recommended"
55
],
6+
"packageRules": [
7+
{
8+
"groupName": "all pre-commit updates",
9+
"managers": [
10+
"pre-commit"
11+
],
12+
"matchUpdateTypes": [
13+
"major",
14+
"minor",
15+
"patch"
16+
]
17+
}
18+
],
619
"pre-commit": {
720
"enabled": true
821
},

0 commit comments

Comments
 (0)