-
Notifications
You must be signed in to change notification settings - Fork 0
Same question fix #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8a1b534
a94136e
742e972
96dd481
f119902
49da100
b8baf89
e1fd0c4
3b458f5
42663b6
72888e7
4daf8c0
c8c0b29
d6560bd
edca8af
f94cd73
cfd7650
03f4bf5
dd6430c
3a5344a
5be9b9b
f49d0a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Django + Pytest CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: ['**'] | ||
| pull_request: | ||
| branches: ['**'] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python 3.11 | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
| - name: Install ffmpeg | ||
| run: choco install ffmpeg -y | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install -r requirements.txt | ||
| working-directory: Merilife/MediBot/chatbot-website | ||
|
|
||
| - name: Run migrations | ||
| run: python manage.py migrate --noinput | ||
| working-directory: Merilife/MediBot/chatbot-website | ||
|
|
||
| - name: Run tests | ||
| run: pytest --maxfail=1 --disable-warnings -q | ||
| working-directory: Merilife/MediBot/chatbot-website | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,7 @@ | |
| !/media/test/.gitkeep | ||
| .pytest_cache/ | ||
| .coverage | ||
| htmlcov/ | ||
| htmlcov/ | ||
| # Python byte‑code | ||
| __pycache__/ | ||
| *.py[cod] | ||
|
Comment on lines
+7
to
+9
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| {% load static %} | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <title>About Me - Medico</title> | ||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> | ||
| <style> | ||
| body { font-family: Arial, sans-serif; background: #f4f4f4; color: #333; margin: 0; padding: 0; } | ||
| .about-container { max-width: 800px; margin: 4rem auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; } | ||
| .about-container img { width: 200px; height: auto; border-radius: 50%; margin-bottom: 1.5rem; } | ||
| .about-container h2 { margin-bottom: 1rem; color: #9b59b6; } | ||
| .about-container p { text-align: left; line-height: 1.6; margin-bottom: 1rem; } | ||
| .nav-link { color: #9b59b6; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <nav class="navbar navbar-light bg-light"> | ||
| <div class="container"> | ||
| <a class="navbar-brand" href="{% url 'index' %}"><i class="fas fa-heartbeat"></i> Medico</a> | ||
| <ul class="nav"> | ||
| <li class="nav-item"><a class="nav-link" href="{% url 'index' %}">Home</a></li> | ||
| <li class="nav-item"><a class="nav-link active" href="{% url 'about' %}">About</a></li> | ||
| </ul> | ||
| </div> | ||
| </nav> | ||
| <div class="about-container"> | ||
| <h2>About Me</h2> | ||
| <img src="{% static 'images/aditya.png' %}" alt="Aditya Upadhyay"> | ||
| <p>My name is Aditya Upadhyay, a passionate and dedicated student currently pursuing my degree from IIIT Delhi. I have a strong foundation in computer science and an avid interest in software development, algorithms, and data structures. My coding skills span across languages like C, C++, Python, and I am comfortable working with tools like Git, NumPy, pandas, and Matplotlib.</p> | ||
| <p>I have successfully contributed to various academic and personal projects involving image processing, data analysis, and machine learning. I actively participate in hackathons, coding competitions, and have consistently ranked among top performers in programming contests. My accomplishments include completing internships, volunteering for NGOs, and making meaningful contributions to open-source projects.</p> | ||
|
Comment on lines
+29
to
+33
|
||
| <p>I strive to continuously learn and grow, seeking opportunities where I can apply my skills to solve real-world problems.</p> | ||
| </div> | ||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI workflow runs
manage.py migratebut the project settings use MySQL by default. Since this workflow doesn't provision MySQL (or set env vars to switch to sqlite), this step is very likely to fail. Consider configuring a DB service (MySQL) + secrets, or switching CI to sqlite/test settings and letting pytest-django manage migrations/db setup (often you can drop the explicit migrate step).