Skip to content

Commit 253ab8c

Browse files
authored
Merge pull request #42 from WorkTeam01/feature/configure-github-actions-ci
feat: Configurar CI/CD con GitHub Actions
2 parents 67faa4b + e83d818 commit 253ab8c

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pytest
28+
29+
- name: Run tests
30+
run: pytest -v

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Team Practice - Flujo de Trabajo Colaborativo
22

3+
[![CI](https://github.com/WorkTeam01/team-practice/actions/workflows/ci.yml/badge.svg)](https://github.com/WorkTeam01/team-practice/actions/workflows/ci.yml)
4+
35
Este repositorio está diseñado para practicar y aprender el flujo de trabajo colaborativo en equipo usando **Python** como lenguaje principal, elegido por su facilidad de uso y aprendizaje.
46

57
## 🎯 Propósito del Proyecto
@@ -99,14 +101,28 @@ docs: actualizar README con instrucciones de setup
99101

100102
## 🧪 Testing
101103

104+
### Ejecutar pruebas localmente
105+
102106
```bash
103107
# Ejecutar todas las pruebas
104-
pytest test_calculator.py
108+
pytest -v
109+
110+
# Ejecutar pruebas de un archivo específico
111+
pytest test_calculator.py -v
105112

106113
# Ejecutar el programa principal
107114
python main.py
108115
```
109116

117+
### Integración Continua (CI)
118+
119+
Este proyecto usa **GitHub Actions** para ejecutar automáticamente las pruebas en cada push y pull request. El badge de estado al inicio del README muestra si las pruebas están pasando.
120+
121+
-**Verde**: Todas las pruebas pasan
122+
-**Rojo**: Hay pruebas fallando
123+
124+
Para más detalles, revisa el archivo de configuración en `.github/workflows/ci.yml`
125+
110126
## 👥 Contribuir
111127

112128
1. Asigna o crea un issue usando las plantillas proporcionadas

0 commit comments

Comments
 (0)