-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.13 KB
/
python-app.yml
File metadata and controls
45 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
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_IMAGES_BUCKET_NAME: ${{ secrets.SUPERBASE_IMAGES_BUCKET_NAME }}
SUPERBASE_VIDEOS_BUCKET_NAME: ${{ secrets.SUPERBASE_VIDEOS_BUCKET_NAME }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
pip install uv
uv sync
- name: Install Playwright browsers
run: |
uv run playwright install --with-deps chromium
- name: Run linter
run: uv run ruff check . --fix
- name: Run pytest
run: uv run pytest -v --maxfail=3 --disable-warnings