Skip to content
Merged
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
12 changes: 7 additions & 5 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Benchmark
name: Benchmark

on:
pull_request:
Expand All @@ -8,21 +8,23 @@ on:
permissions:
contents: write
deployments: write
# Let us comment on the pull request when there's an alert.
pull-requests: write

jobs:
benchmark:
name: Run benchmarks
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
with:
python-version: "3.10"

- name: Run benchmarks
run: |
pip install .[dev]
pip install .[dev]
pytest tests/bench.py --benchmark-json benchmark.json

- name: Report results
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0 # fetch all history for setuptools_scm to be able to read tags

Expand Down Expand Up @@ -57,15 +57,15 @@ jobs:
run: python -m build

- name: Upload coverage
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
if: matrix.python-version == '3.10'
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON
fail_ci_if_error: true
files: .coverage.${{ steps.pyenv.outputs.value }}.xml

- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
if: matrix.python-version == '2.7' || matrix.python-version == '3.8'
with:
name: dist-${{ matrix.python-version }}
Expand All @@ -79,7 +79,7 @@ jobs:
id-token: write
if: github.event_name != 'pull_request'
steps:
- uses: actions/download-artifact@v7
- uses: actions/download-artifact@v8

- name: Organize files for upload
run: |
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(exclude=("tests",)),
setup_requires=["setuptools_scm<6"],
setup_requires=[
"setuptools_scm<6;python_version<'3.9'",
"setuptools_scm;python_version>'3.8'",
],
use_scm_version={
'local_scheme': 'no-local-version', # disable local-version to allow uploads to test.pypi.org
},
Expand Down
Loading