Skip to content

Commit 2e23e67

Browse files
author
CoderDeltaLAN
committed
Merge remote-tracking branch 'origin/main' into feat/skeleton
2 parents 63fd7b1 + 2a3b990 commit 2e23e67

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
python:
17-
if: ${{ (github.event_name == 'push' && startsWith(github.ref,'refs/heads/main')) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name,'ready')) }}
16+
linux:
17+
name: linux (py=${{ matrix.python-version }})
1818
runs-on: ubuntu-latest
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ['3.11','3.12']
22+
python-version: ["3.11","3.12"]
23+
env:
24+
PYTHONPATH: src
2325
steps:
2426
- uses: actions/checkout@v4
2527
- uses: actions/setup-python@v5
@@ -31,3 +33,21 @@ jobs:
3133
- run: black --check .
3234
- run: pytest -q
3335
- run: mypy .
36+
37+
windows_optional:
38+
name: windows (optional)
39+
runs-on: windows-latest
40+
continue-on-error: true
41+
env:
42+
PYTHONPATH: src
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.12"
48+
- run: python -m pip install -U pip
49+
- run: pip install ruff black pytest mypy
50+
- run: ruff check .
51+
- run: black --check .
52+
- run: pytest -q
53+
- run: mypy .

src/commit_guardian/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
__version__ = "0.0.1"
55

66

7+
78
def ping() -> str:
89
return "pong"

0 commit comments

Comments
 (0)