-
Notifications
You must be signed in to change notification settings - Fork 193
48 lines (42 loc) · 1.09 KB
/
unit_tests.yml
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
46
47
48
name: unit-tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.id }}
cancel-in-progress: true
env:
OPENAI_API_KEY: dummy
TELEMETRY_ENABLED: false
REFLEX_DEP: "git+https://github.com/reflex-dev/reflex@main"
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
inputs:
reflex_dep:
description: "Reflex dependency (full specifier)"
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
unit-tests:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.11.5', '3.12.0']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Requirements for reflex-web and reflex
run: |
pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt pytest playwright pytest-playwright
playwright install --with-deps
- name: Run unit tests
run: |
export PYTHONUNBUFFERED=1
reflex init
pytest tests