-
Notifications
You must be signed in to change notification settings - Fork 0
Create python-app.yml #14
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
Changes from all commits
9a777ff
c8dbbb8
9e79a07
bc2dad4
ca4739b
d625e77
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,48 @@ | ||
| name: Python Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| ADMIN_USERNAME: ${{ secrets.ADMIN_USERNAME }} | ||
| ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }} | ||
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
| SUPERBASE_SERVICE_ROLE_KEY: ${{ secrets.SUPERBASE_SERVICE_ROLE_KEY }} | ||
| SUPABASE_ANON_KEY: ${{ secrets.SUPERBASE_ANON_KEY }} | ||
| SUPERBASE_S3_BUCKET_NAME: ${{ secrets.SUPERBASE_S3_BUCKET_NAME }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python 3.13 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.13" | ||
|
|
||
|
Comment on lines
+26
to
+30
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainConfirm hosted runners ship Python 3.13 🏁 Script executed: #!/bin/bash
# Verify which CPython releases ubuntu-latest exposes today
python -m pip install --upgrade pip
python -c "import sys; print(sys.version)"
pyenv versions || trueLength of output: 688 Use a supported Python version in your workflow 🤖 Prompt for AI Agents |
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8 pytest playwright | ||
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
|
|
||
| - name: Install Playwright browsers | ||
| run: | | ||
| playwright install --with-deps chromium | ||
|
|
||
| - name: Lint with flake8 | ||
| run: | | ||
| # Stop build if there are syntax errors or undefined names | ||
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
| # Exit-zero treats all errors as warnings (so build continues) | ||
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - name: Run pytest | ||
| run: pytest -v --maxfail=3 --disable-warnings | ||
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.
Fix the SUPABASE secret names.
You mix
SUPABASE_*andSUPERBASE_*keys. Unless the repository really defines both spellings, the latter will resolve to empty strings at runtime. Align the secret names with the actual Supabase keys (probablySUPABASE_*).🤖 Prompt for AI Agents