@@ -20,38 +20,38 @@ jobs:
2020 python-version : ["3.9", "3.10", "3.11", "3.12"]
2121
2222 steps :
23- - uses : actions/checkout@v4
24-
23+ - uses : actions/checkout@v5
24+
2525 - name : Set up Python ${{ matrix.python-version }}
26- uses : actions/setup-python@v5
26+ uses : actions/setup-python@v6
2727 with :
2828 python-version : ${{ matrix.python-version }}
29-
29+
3030 - name : Install dependencies
3131 run : |
3232 python -m pip install --upgrade pip
3333 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3434 python -m pip install flake8 pytest pytest-cov black mypy
35-
35+
3636 - name : Lint with flake8
3737 run : |
3838 # stop the build if there are Python syntax errors or undefined names
3939 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4040 # exit-zero treats all errors as warnings
4141 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42-
42+
4343 - name : Check code formatting with black
4444 run : |
4545 black --check --diff . || true
46-
46+
4747 - name : Run tests with pytest
4848 run : |
4949 # Create tests directory if it doesn't exist
5050 mkdir -p tests
51-
51+
5252 # Run pytest with coverage (allow to pass even if no tests found)
5353 python -m pytest tests/ --cov=. --cov-report=xml --cov-fail-under=0 || echo "Tests completed"
54-
54+
5555 - name : Verify Python scripts run without errors
5656 run : |
5757 echo "Testing basic Python scripts..."
@@ -66,37 +66,37 @@ jobs:
6666 runs-on : ubuntu-latest
6767 needs : build
6868 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
69-
69+
7070 steps :
71- - uses : actions/checkout@v4
72-
71+ - uses : actions/checkout@v5
72+
7373 - name : Setup Node.js for Vercel CLI
7474 uses : actions/setup-node@v4
7575 with :
7676 node-version : ' 18'
77-
77+
7878 - name : Install Vercel CLI
7979 run : npm install --global vercel@latest
80-
80+
8181 - name : Verify Vercel configuration
8282 run : |
8383 echo "Checking Vercel configuration..."
8484 cat vercel.json
8585 echo "✓ vercel.json exists and is valid"
86-
86+
8787 # Check API files exist
8888 if [ -f "api/vercel_handler.py" ]; then
8989 echo "✓ API handler found (vercel_handler.py)"
9090 else
9191 echo "✗ API module not found"
9292 exit 1
9393 fi
94-
94+
9595 if [ -f "index.html" ]; then
9696 echo "✓ Frontend HTML found"
9797 else
9898 echo "✗ Frontend HTML not found"
9999 exit 1
100100 fi
101-
101+
102102 echo "✅ All Vercel deployment prerequisites met!"
0 commit comments