Skip to content

Commit cfad413

Browse files
committed
feat/check-v2 add e2e for check v
1 parent c696038 commit cfad413

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.11'
19-
- name: install-dependencies
20-
run: pip install -r opencepk_lib_python_common/pypi_bumpversion_check_package/pypi_bumpversion_check/requirements.txt
19+
# - name: install-dependencies
20+
# run: pip install -r opencepk_lib_python_common/pypi_bumpversion_check_package/pypi_bumpversion_check/requirements.txt
2121
- name: pre-commit-run
2222
uses: pre-commit/action@v3.0.0

.pre-commit-config.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ repos:
6161
# -----------------------------
6262
# PYPI bumpversion check
6363
# -----------------------------
64-
- repo: local
65-
hooks:
66-
- id: install-pypi_bumpversion_check-requirements
67-
name: Install PYPI bumpversion check requirements
68-
entry: sh -c 'pip3 install -r ./opencepk_lib_python_common/pypi_bumpversion_check_package/pypi_bumpversion_check/requirements.txt && exit 0'
69-
language: system
70-
always_run: true
64+
# - repo: local
65+
# hooks:
66+
# - id: install-pypi_bumpversion_check-requirements
67+
# name: Install PYPI bumpversion check requirements
68+
# entry: sh -c 'pip3 install -r ./opencepk_lib_python_common/pypi_bumpversion_check_package/pypi_bumpversion_check/requirements.txt && exit 0'
69+
# language: system
70+
# always_run: true
7171

7272
# -----------------------------
7373
# PYPI bumpversion check
@@ -78,8 +78,11 @@ repos:
7878
name: Check version
7979
args: ['./pyproject.toml']
8080
entry: python3 -m opencepk_lib_python_common.pypi_bumpversion_check_package.pypi_bumpversion_check
81-
language: system
81+
language: python
8282
pass_filenames: false # Do not pass filenames to the hook (this is important to keep)
83+
additional_dependencies:
84+
- toml
85+
- requests
8386

8487

8588
- repo: local
@@ -90,3 +93,12 @@ repos:
9093
language: system
9194
pass_filenames: false
9295
always_run: true
96+
97+
- repo: local
98+
hooks:
99+
- id: toml build
100+
name: test the .toml package health
101+
entry: pip3 install .
102+
language: system
103+
pass_filenames: false
104+
always_run: true

0 commit comments

Comments
 (0)