diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f713e4d..6980c8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} \ No newline at end of file + 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/actions-poetry@v3.0.1 + with: + poetry-version: 1.2.2 + + - name: Install dependencies + run: poetry install + + - name: Run tests + run: poetry run pytest --benchmark-enable diff --git a/pyproject.toml b/pyproject.toml index 0f633c7..061f1b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" +]