Skip to content

Commit

Permalink
Run benchmarks once on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Callan Gray <[email protected]>
  • Loading branch information
calgray committed Jan 1, 2025
1 parent 213d9c6 commit 6fa2738
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,25 @@ jobs:
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == '3.13') }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

benchmark:
needs: qa
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.2

- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest --benchmark-enable --benchmark-only
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,14 @@ docstring-convention = 'google'
profile = "black"

[tool.pytest.ini_options]
addopts = "-v --mypy -p no:warnings --cov=athreading --cov-report=html --doctest-modules --ignore=athreading/__main__.py"
addopts = [
"-v",
"--mypy",
"-p",
"no:warnings",
"--cov=athreading",
"--cov-report=html",
"--doctest-modules",
"--benchmark-disable",
"--ignore=athreading/__main__.py"
]

0 comments on commit 6fa2738

Please sign in to comment.