kangwonlee / gemini-python-tutor

Google Gemini Tutor for Github Classroom
MIT License
0 stars 0 forks source link

Build Status GitHub release

AI Python Code Tutor (Gemini)

This action analyzes test results and code to provide personalized feedback on student assignments, including identifying errors, suggesting improvements, and explaining concepts.

The AI tutor can identify logic errors, suggest more efficient algorithms, explain complex concepts in simpler terms, and even provide links to relevant documentation.

It would save instructors' time, provide more consistent feedback, and help students learn more effectively regardless of time & location.

Prerequisites

Before using this action, ensure you have the following:

Key Features

Usage

on: [push]

jobs:
  grade:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: pip install pytest pytest-json-report
      - name: Run tests
        run: |
          python -m pytest --json-report --json-report-file=report.json tests/test_my_test_file.py
      - name: AI Python Tutor
        uses: kangwonlee/gemini-python-tutor@v0.1.1
        if: always()
        with:
          report-files: report.json
          api-key: ${{ secrets.GOOGLE_API_KEY }}
          student-files: exercise.py
          readme-path: README.md
          explanation-in: English
        timeout-minutes: 5 

Inputs

Example with multiple JSON files and student files

with:
  report-files: 'report1.json, report2.json, reports/*.json'
  api-key: ${{ secrets.GOOGLE_API_KEY }}
  student-files: 'exercise1.py, exercise2.py' 
  readme-path: README.md
  explanation-in: English

Limitations

Future Work

Troubleshooting

Common Errors:

Debugging Suggestions:

Contact