Skip to content

Commit a6ebc5d

Browse files
ci: added conventional commits
1 parent 7e714c5 commit a6ebc5d

3 files changed

Lines changed: 41 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
# get all branches
2121
fetch-depth: 0
2222

23+
- name: Lint commit messages
24+
uses: wagoid/commitlint-github-action@v5
25+
2326
- name: Set up Python ${{ env.PYTHON_VERSION }}
2427
uses: actions/setup-python@v5
2528
with:
@@ -32,11 +35,10 @@ jobs:
3235
- name: Install deps
3336
run: |
3437
cd python_coderunner
35-
uv pip install --system --group dev --requirements=pyproject.toml
38+
uv pip install --system --group pre-commit --requirements pyproject.toml
3639
3740
- name: Run pre-commit
3841
run: |
39-
commitlint --from origin/${{ github.base_ref }} --to HEAD
4042
pre-commit run --all-files
4143
4244
tests:
@@ -58,7 +60,7 @@ jobs:
5860
- name: Install deps
5961
run: |
6062
cd python_coderunner
61-
uv pip install --system --group dev --requirements=pyproject.toml
63+
uv pip install --system --group test --requirements pyproject.toml
6264
6365
- name: Run tests
6466
run: |

python_coderunner/pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ dev = [
1818
"pytest-mock>=3.5.1",
1919
"ruff>=0.12.0",
2020
]
21+
pre-commit = [
22+
"isort>=4.3.21",
23+
"mypy>=0.910",
24+
"pre-commit>=1.21.0",
25+
"pylint>=2.6.2",
26+
"ruff>=0.12.0",
27+
]
28+
test = [
29+
"pytest>=6.1.2,<8.0.0",
30+
"pytest-lazy-fixture>=0.6.3",
31+
"pytest-mock>=3.5.1",
32+
]
2133

2234
[tool.pytest.ini_options]
2335
pythonpath = ["."] # to run without python -m, otherwise there will be no src in the path

python_coderunner/uv.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)