Skip to content

Commit b06c2f7

Browse files
committed
Correcciones iniciales: YAML y archivos Python
1 parent 280701f commit b06c2f7

52 files changed

Lines changed: 1239 additions & 265 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 263c8c4766664a164c39999679a84628d3b67145

.coverage

52 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Set up Python
9+
uses: actions/setup-python@v5
10+
with:
11+
python-version: '3.12'
12+
- name: Install dependencies
13+
run: |
14+
python -m pip install --upgrade pip
15+
pip install -r requirements-dev.txt
16+
- name: Run tests
17+
run: |
18+
pytest --cov=ai_core --cov-report=xml
19+
- name: Upload coverage
20+
uses: codecov/codecov-action@v4

.github/workflows/dependency_ai.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ["3.10", "3.11"]
14-
14+
1515
steps:
1616
- uses: actions/checkout@v4
17-
17+
1818
- name: Set up Python ${{ matrix.python-version }}
1919
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
22+
2323
- name: Run Dependency Analyzer
2424
run: |
2525
python -m ai_core.dependency_analyzer --repo $GITHUB_REPOSITORY
2626
python -m ai_core.error_diagnosis_engine --log-path ./logs/
27-
27+
2828
- name: Upload Results
2929
uses: actions/upload-artifact@v3
3030
with:

.github/workflows/deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Checkout Code
1414
uses: actions/checkout@v3
15-
15+
1616
- name: Dependency Scan
1717
uses: mechmind/ai-dependency-action@v3
1818
with:

.github/workflows/django.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
with:
1414
python-version: '3.10'
1515
cache: 'pip'
16-
16+
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
2020
pip install -r requirements.txt
21-
21+
2222
- name: Debug - List Files
2323
run: ls -la
24-
24+
2525
- name: Run tests
2626
run: |
2727
python manage.py test

.github/workflows/main.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
-- name:
2-
uses: actions/download-artifact@v4.2.1
3-
with:
4-
pattern: 'report-*.json'
1+
name: CI
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
uses: actions/download-artifact@v4.2.1
8+
with:
9+
pattern: 'report-*.json'
510
path: ./custom_reports/
611
merge-multiple: true
712
github-token: ${{ secrets.CI_CD_TOKEN }}
@@ -12,20 +17,20 @@
1217
workflows: ["Dependency Analysis"]
1318
types:
1419
- completed
15-
20+
1621
jobs:
1722
build:
1823
runs-on: ubuntu-latest
1924
steps:
2025
- uses: actions/checkout@v4
21-
26+
2227
- name: Upload artifact
2328
uses: actions/upload-artifact@v3
2429
with:
2530
name: dependency-report
2631
path: ./reports/
2732
env:
28-
GITHUB_TOKEN: ${{ secrets.GH_ARTIFACT_ACCESS_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.GH_ARTIFACT_ACCESS_TOKEN }}
2934
- name: Process Artifacts
3035
run: |
3136
echo "Processing downloaded artifacts..."

.github/workflows/python-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,36 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
19+
2020
- name: Set up Python ${{ matrix.python-version }}
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
24+
2525
- name: Cache pip dependencies
2626
uses: actions/cache@v3
2727
with:
2828
path: ~/.cache/pip
2929
key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
3030
restore-keys: |
3131
${{ runner.os }}-pip-
32-
32+
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
3636
pip install -r requirements.txt
3737
pip install -r requirements-dev.txt
38-
38+
3939
- name: Run linting
4040
run: |
4141
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4242
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4343
black --check --diff .
44-
44+
4545
- name: Run tests
4646
run: |
4747
pytest --cov=./ --cov-report=xml
48-
48+
4949
- name: Upload coverage
5050
uses: codecov/codecov-action@v3
5151
with:

.github/workflows/yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push]
33

44
jobs:
55
check-version:
6-
runs-on:
6+
runs-on:
77
group: ubuntu-runners
88
labels: ubuntu-20.04-16core
99
steps:

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ __pycache__/
66
*.egg-info/
77
venv/
88
*.log
9+
10+
# Archivos temporales
11+
filtered_reqs.txt
12+
13+
# Entornos virtual
14+
.venv/

0 commit comments

Comments
 (0)