Skip to content
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

feat: install codspeed #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Benchmarks

on:
# Run on pushes to the main branch
push:
branches:
- "master" # or "main"
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
.mypy_cache
.tox
~/.cache/pip
key: "py312-pyqt66-${{ matrix.os }}-3.12-${{ hashFiles('misc/requirements/requirements-*.txt') }}-${{ hashFiles('requirements.txt') }}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up problem matchers
run: "python scripts/dev/ci/problemmatchers.py py312-pyqt66 ${{ runner.temp }}"
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends libyaml-dev libegl1-mesa libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-shape0 libxcb-cursor0
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U \
-r misc/requirements/requirements-tox.txt \
-r misc/requirements/requirements-dev.txt \
-r misc/requirements/requirements-tests.txt \
-r misc/requirements/requirements-pyqt-6.6.txt
python -m pip install -e .

- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
run: dbus-run-session pytest . --codspeed
65 changes: 0 additions & 65 deletions .github/workflows/bleeding.yml

This file was deleted.

283 changes: 0 additions & 283 deletions .github/workflows/ci.yml

This file was deleted.

Loading
Loading