Skip to content

Commit

Permalink
Try running benchmarks in parallel and in Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Feb 2, 2024
1 parent fe6432e commit b297b19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
python-version: ${{ matrix.py }}
cache: "pip"
- run: pip install -e .[test]
- run: pytest --benchmark-disable
- run: pytest --benchmark-disable -vvv
mypy:
runs-on: ubuntu-latest
steps:
Expand All @@ -58,13 +58,13 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
cache: "pip"
- run: pip install -e .[test]
- uses: CodSpeedHQ/action@v2
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest -vvv
run: pytest -vvv -n auto
docs:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ test = [
"egglog[array]",
"pytest-codspeed",
"pytest-benchmark",
"pytest-xdist",
]

docs = [
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_array_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def load_source(expr):
return egraph.eval(fn_program.statements)


@pytest.mark.benchmark(min_rounds=1)
@pytest.mark.benchmark(min_rounds=3)
class TestLDA:
def test_trace(self, snapshot_py, benchmark):
@benchmark
Expand Down

0 comments on commit b297b19

Please sign in to comment.