Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,3 @@ AI_MODE="predator"

# Otras variables
NODE_ENV="production"
GITHUB_TOKEN: ${{ secrets.GH_ARTIFACT_ACCESS_TOKEN }}
GIT_COMMITTER_NAME: "MechBot-9000"
GIT_COMMITTER_EMAIL: "mechbot@mechmind.io"
DEFCON: 1 # Maximum alert status
SCAN_MODE: "aggressive"
security-events: write # Threat intelligence reporting
NODE_ENV: "production"
AI_MODE: "predator"
ACTIONS_STEP_DEBUG a true

env:
GITHUB_TOKEN: ${{ secrets.GH_ARTIFACT_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
workflows/
13 changes: 0 additions & 13 deletions .github/workflows/dependency-scan.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/dependency_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
push:
branches: [ "main" ] # Primary defense perimeter
tags: [ "v*" ] # Release version monitoring
pull_request: write
pull_request:
branches: [ "main" ] # Pre-merge security checkpoint
schedule:
- cron: "0 3 * * 1" # Weekly deep scan (Monday 3AM UTC)
Expand All @@ -32,7 +32,7 @@ jobs:
dependency-scan:
name: "TACTICAL_SCAN_OPERATION"
runs-on: [self-hosted, linux, x64] # MechMind Battle Station
contents:
contents: write # Code modification clearance

# ⚙️ OPERATIONAL PARAMETERS
timeout-minutes: 30 # Mission duration limit
Expand Down
52 changes: 5 additions & 47 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,24 @@
name: Enhanced Dependency Scan with Security Checks
2 months ago

Update deps.yml

on:
push:
7 minutes ago

Update deps.yml
branches: [main]
2 weeks ago

Update deps.yml
pull_requests: wite
7 minutes ago

Update deps.yml
branches: [main]
last month

Update deps.yml
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: write # For pushing changes/fixes
pull-requests: write # For creating/updating PRs
security-events: write # For reporting security issues
actions: read # For workflow operations
checks: write # For creating check runs
2 months ago

Update deps.yml

jobs:
last month

Update deps.yml
dependency-scan:
name: Dependency Scan & Security Analysis
2 months ago

Update deps.yml
runs-on: ubuntu-latest
last month

Update deps.yml

2 months ago

Update deps.yml
steps:
last month

Update deps.yml
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -85,17 +52,8 @@ Update deps.yml
- name: Commit Auto-Fixes
if: steps.dependency-scan.outputs.fixes_made == 'true'
run: |
2 weeks ago

Update deps.yml
git config --global user.name 'mechmind-dwv'
4 days ago

Update deps.yml
git config --global user.email 'ia.mechmind@gmail.com'
last month

Update deps.yml
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add .
git commit -m "Automated dependency fixes from scan"
git push
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
name: Django CI

on:
push:
branches: "main"
pull_request:
branches: "main"
on: [push, pull_request]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: 3.7, 3.8, 3.9

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
python-version: '3.10'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests

- name: Debug - List Files
run: ls -la

- name: Run tests
run: |
python manage.py test
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versionsAdd commentMore actions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Python CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true

fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -37,27 +33,20 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
pip install -r requirements.txt
pip install -r requirements-dev.txt

- name: Run linting
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
black --check --diff .

- name: Run tests
run: |
pytest
pytest --cov=./ --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
fail_ci_if_error: false
10 changes: 5 additions & 5 deletions .github/workflows/runner-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- name: Limpiar runners offline
uses: actions/cleanup-action@v3
with:
token: ${{ secrets.RUNNER_CLEANUP_TOKEN }} # Token personalizado
remove-token: ${{ secrets.RUNNER_CLEANUP_TOKEN }} # Token personalizado
token: ${{ secrets.GITHUB_TOKEN }}
remove-token: ${{ secrets.GITHUB_TOKEN }}
exclude-running: true
min-age-days: 1
dry-run: true
dry-run: false

- name: Terminar workflows obsoletos
uses: ./.github/actions/cancel-workflows
with:
token: ${{ secrets.GITHUB_TOKEN }}
hours: 48 # Cancela workflows con más de 24 horas
hours: 24 # Cancela workflows con más de 24 horas

health-check:
name: Verificación de Salud Completa
Expand All @@ -39,7 +39,7 @@ jobs:
echo "Versión del Runner: ${{ runner.version }}"
echo "Sistema Operativo: ${{ runner.os }}"
echo "::endgroup::"

echo "::group::Uso de Disco"
df -h || echo "Error al verificar disco"
echo "::endgroup::"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests

on: push, pull_request
on: [push, pull_request]

jobs:
test:
Expand All @@ -21,4 +21,4 @@ jobs:

- name: Run tests
run: |
pytest --cov=src --cov-report=xml tests/
pytest --cov=src --cov-report=xml tests/
6 changes: 3 additions & 3 deletions .github/workflows/Ci.yml → .github/workflows/yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Ejecución en runners Ubuntu
on: push
on: [push]

jobs: read
jobs:
check-version:
runs-on:
group: ubuntu-runners
labels: ubuntu-20.04-16 core
labels: ubuntu-20.04-16core
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# MechanicalMind Dependency AI v3.0
[![Ejecución en runners Ubuntu](https://github.com/MechBot-2x/-MechanicalMind-Dependency-AI-v3.0-/actions/workflows/Ci.yml/badge.svg)](https://github.com/MechBot-2x/-MechanicalMind-Dependency-AI-v3.0-/actions/workflows/Ci.yml)

![MechMind Logo](https://via.placeholder.com/150x50?text=MechMind+AI)
**Advanced Dependency Management with AI-Powered Resolution**
Expand Down Expand Up @@ -154,4 +153,4 @@ Apache 2.0 with Commons Clause - See [LICENSE](LICENSE)

---

**MechanicalMind AI** © 2025 - Dependency Management Reimagined
**MechanicalMind AI** © 2023 - Dependency Management Reimagined
13 changes: 0 additions & 13 deletions ai_core/__init__.py

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions docs/Roadmap
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## **📌 Próximos Pasos (Roadmap)**

| Feature | Prioridad | Responsable | ETA |
|----------------------------|----------|--------------|-----------|
| Auto-PR en fallos de CI/CD | 🔴 High | DevOps Team | 2025-05-01|
Expand Down
15 changes: 0 additions & 15 deletions docs/architectural/Overview

This file was deleted.

2 changes: 0 additions & 2 deletions docs/requeriments.docs.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions project-root/STRUCTURE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
```
project-root/
├── src/
│ └── your_package/
│ └── __init__.py
├── setup.py
├── pyproject.toml
└── requirements.txt
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ exclude = '''
| build
| dist
)/
'''
File renamed without changes.
2 changes: 2 additions & 0 deletions requeriments.docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx>=5.0.0
furo>=2022.4.0
2 changes: 1 addition & 1 deletion dev/requirements.txt → requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ flake8>=4.0.0

# Documentation
sphinx>=5.0.0
furo>=2022.4.0
furo>=2022.4.0
2 changes: 1 addition & 1 deletion requirements.fixed.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django==4.2.22
django==4.2.20
drf-yasg==1.21.7
pytest-django==4.5.2
-e .
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ aws cloudwatch put-metric-alarm \
--metric-name "CPUUtilization" \
--namespace "GitHubRunners" \
--threshold 80 \
--comparison-operator GreaterThanThreshold
--comparison-operator GreaterThanThreshold
Loading
Loading