Skip to content

Commit 97b1f13

Browse files
committed
Refactor CI workflow and Makefile for improved clarity and consistency
1 parent 2e99ae8 commit 97b1f13

2 files changed

Lines changed: 27 additions & 13 deletions

File tree

.github/workflows/main.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# .github/workflows/main.yml
2-
3-
name: 🔄 CI – Vault Template Build Check
1+
name: 🔄 CI – PtiCalin Game Engine Build Check
42

53
on:
64
push:
@@ -15,9 +13,25 @@ jobs:
1513
runs-on: ubuntu-latest
1614

1715
steps:
16+
- name: 📦 Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: 🐍 Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.11'
23+
1824
- name: 📦 Install dependencies
19-
run: | #List dependencies here
20-
echo "Installing dependencies..."
21-
# Example: pip install -r requirements.txt
22-
# Replace with actual commands for your project
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
29+
30+
- name: 🔍 Lint code
31+
run: |
32+
black --check .
33+
34+
- name: ✅ Run tests
35+
run: |
36+
pytest -v
2337

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.PHONY: install dev test format lint
22

33
install:
4-
pip install -r requirements.txt
4+
pip install -r requirements.txt
55

66
lint:
7-
black --check .
8-
test -f requirements-dev.txt && flake8 . || true
7+
black --check .
8+
test -f requirements-dev.txt && flake8 . || true
99

1010
format:
11-
black .
11+
black .
1212

1313
test:
14-
pytest -q
14+
pytest -v
1515

1616
dev: install
17-
pip install -r requirements-dev.txt
17+
pip install -r requirements-dev.txt

0 commit comments

Comments
 (0)