Skip to content

Commit bed2df1

Browse files
committed
update cicd
1 parent 76aa09c commit bed2df1

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ jobs:
4343
uses: actions/setup-python@v5
4444
with:
4545
python-version: 3.11
46+
47+
# Configuración Rápida con Cacheo de Dependencias
48+
- name: Cache dependencies
49+
uses: actions/cache@v3
50+
with:
51+
path: ~/.cache/pip
52+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
53+
restore-keys: |
54+
${{ runner.os }}-pip-
55+
56+
# Paso para formateo con Black
57+
- name: Check formatting with Black
58+
run: |
59+
pip install black
60+
black --check --diff src/ tests/
61+
62+
# Paso para linting con Flake8
63+
- name: Lint with Flake8
64+
run: |
65+
pip install flake8
66+
flake8 src/ tests/ --count --max-complexity=10 --max-line-length=88 --statistics
4667
4768
- name: 📦 Instalar dependencias
4869
run: |

0 commit comments

Comments
 (0)