Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
# get all branches
fetch-depth: 0

- name: Lint commit messages
uses: wagoid/commitlint-github-action@v5

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
Expand All @@ -32,11 +35,10 @@ jobs:
- name: Install deps
run: |
cd python_coderunner
uv pip install --system --group dev --requirements=pyproject.toml
uv pip install --system --group pre-commit --requirements pyproject.toml

- name: Run pre-commit
run: |
commitlint --from origin/${{ github.base_ref }} --to HEAD
pre-commit run --all-files

tests:
Expand All @@ -58,7 +60,7 @@ jobs:
- name: Install deps
run: |
cd python_coderunner
uv pip install --system --group dev --requirements=pyproject.toml
uv pip install --system --group test --requirements pyproject.toml

- name: Run tests
run: |
Expand Down
12 changes: 12 additions & 0 deletions python_coderunner/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ dev = [
"pytest-mock>=3.5.1",
"ruff>=0.12.0",
]
pre-commit = [
"isort>=4.3.21",
"mypy>=0.910",
"pre-commit>=1.21.0",
"pylint>=2.6.2",
"ruff>=0.12.0",
]
test = [
"pytest>=6.1.2,<8.0.0",
"pytest-lazy-fixture>=0.6.3",
"pytest-mock>=3.5.1",
]

[tool.pytest.ini_options]
pythonpath = ["."] # to run without python -m, otherwise there will be no src in the path
Expand Down
24 changes: 24 additions & 0 deletions python_coderunner/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.