Test Codspeed

This commit is contained in:
Alek Petuskey 2025-01-19 18:56:10 -08:00
parent 4da32a122b
commit 00247a6880
2 changed files with 1177 additions and 18 deletions

File diff suppressed because it is too large Load Diff

View File

@ -64,25 +64,35 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup_build_env - uses: ./.github/actions/setup_build_env
with: with:
token: ${{ secrets.CODSPEED_TOKEN }}
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
run-poetry-install: true run-poetry-install: true
create-venv-at-path: .venv create-venv-at-path: .venv
- name: Run unit tests - name: Run unit tests
run: | uses: CodSpeedHQ/action@v3
export PYTHONUNBUFFERED=1 with:
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= token: ${{ secrets.CODSPEED_TOKEN }}
run: |
export PYTHONUNBUFFERED=1
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
- name: Run unit tests w/ redis - name: Run unit tests w/ redis
if: ${{ matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'ubuntu-latest' }}
run: | uses: CodSpeedHQ/action@v3
export PYTHONUNBUFFERED=1 with:
export REDIS_URL=redis://localhost:6379 token: ${{ secrets.CODSPEED_TOKEN }}
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= run: |
export PYTHONUNBUFFERED=1
export REDIS_URL=redis://localhost:6379
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
# Change to explicitly install v1 when reflex-hosting-cli is compatible with v2 # Change to explicitly install v1 when reflex-hosting-cli is compatible with v2
- name: Run unit tests w/ pydantic v1 - name: Run unit tests w/ pydantic v1
run: | uses: CodSpeedHQ/action@v3
export PYTHONUNBUFFERED=1 with:
poetry run uv pip install "pydantic~=1.10" token: ${{ secrets.CODSPEED_TOKEN }}
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= 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
- name: Generate coverage report - name: Generate coverage report
run: poetry run coverage html run: poetry run coverage html
@ -103,11 +113,17 @@ jobs:
run-poetry-install: true run-poetry-install: true
create-venv-at-path: .venv create-venv-at-path: .venv
- name: Run unit tests - name: Run unit tests
run: | uses: CodSpeedHQ/action@v3
export PYTHONUNBUFFERED=1 with:
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= token: ${{ secrets.CODSPEED_TOKEN }}
run: |
export PYTHONUNBUFFERED=1
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= --codspeed
- name: Run unit tests w/ pydantic v1 - name: Run unit tests w/ pydantic v1
run: | uses: CodSpeedHQ/action@v3
export PYTHONUNBUFFERED=1 with:
poetry run uv pip install "pydantic~=1.10" token: ${{ secrets.CODSPEED_TOKEN }}
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= 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