Test codespeed

This commit is contained in:
Alek Petuskey 2025-01-19 18:37:32 -08:00
parent 3b137bded7
commit b41f3de720

View File

@ -73,7 +73,7 @@ jobs:
token: ${{ secrets.CODSPEED_TOKEN }}
run: |
export PYTHONUNBUFFERED=1
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
poetry run pytest tests/units --cov --no-cov-on-fail --codspeed --cov-report=
- name: Run unit tests w/ redis
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: CodSpeedHQ/action@v3
@ -82,7 +82,7 @@ jobs:
run: |
export PYTHONUNBUFFERED=1
export REDIS_URL=redis://localhost:6379
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
poetry run pytest tests/units --cov --no-cov-on-fail --codspeed --cov-report=
# Change to explicitly install v1 when reflex-hosting-cli is compatible with v2
- name: Run unit tests w/ pydantic v1
uses: CodSpeedHQ/action@v3
@ -91,7 +91,7 @@ jobs:
run: |
export PYTHONUNBUFFERED=1
poetry run uv pip install "pydantic~=1.10"
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
poetry run pytest tests/units --cov --no-cov-on-fail --codspeed --cov-report=
- name: Generate coverage report
run: poetry run coverage html