Skip to content

Commit 7730e2e

Browse files
Bump updated GitHub Actions (#40)
* Bump actions/download-artifact from 7 to 8 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v7...v8) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Use a newer setuptools-scm where available that's compatible with setuptools 82+ setuptools 82.0.0 no longer comes with pkg_resources. Don't pin setuptools-scm so that, when we get setuptools 82+, we have a shot at getting a compatible version of setuptools-scm that doesn't require pkg_resources. <https://setuptools.pypa.io/en/stable/deprecated/pkg_resources.html> Before Python 3.9 we still need an old setuptools-scm that doesn't refer to the distutils.cmd `ignore_egg_info_in_manifest` attribute that's not defined in Python 3.8's version of distutils. * Bump actions/upload-artifact from 6 to 7 (#41) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v6...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump codecov/codecov-action from 5 to 7 (#44) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 7. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5...v7) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Let the benchmark workflow post its comments * Bump actions/setup-python from 6 to 7 (#45) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 6 to 7 (#46) Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent e6396c8 commit 7730e2e

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/bench.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Benchmark
1+
name: Benchmark
22

33
on:
44
pull_request:
@@ -8,21 +8,23 @@ on:
88
permissions:
99
contents: write
1010
deployments: write
11+
# Let us comment on the pull request when there's an alert.
12+
pull-requests: write
1113

1214
jobs:
1315
benchmark:
14-
name: Run benchmarks
16+
name: Run benchmarks
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@v7
1820

19-
- uses: actions/setup-python@v6
21+
- uses: actions/setup-python@v7
2022
with:
2123
python-version: "3.10"
2224

2325
- name: Run benchmarks
2426
run: |
25-
pip install .[dev]
27+
pip install .[dev]
2628
pytest tests/bench.py --benchmark-json benchmark.json
2729
2830
- name: Report results

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
PYTHON: ${{ matrix.python-version }}
2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@v7
2626
with:
2727
fetch-depth: 0 # fetch all history for setuptools_scm to be able to read tags
2828

@@ -57,15 +57,15 @@ jobs:
5757
run: python -m build
5858

5959
- name: Upload coverage
60-
uses: codecov/codecov-action@v5
60+
uses: codecov/codecov-action@v7
6161
if: matrix.python-version == '3.10'
6262
with:
6363
token: ${{ secrets.CODECOV_TOKEN }}
6464
env_vars: PYTHON
6565
fail_ci_if_error: true
6666
files: .coverage.${{ steps.pyenv.outputs.value }}.xml
6767

68-
- uses: actions/upload-artifact@v6
68+
- uses: actions/upload-artifact@v7
6969
if: matrix.python-version == '2.7' || matrix.python-version == '3.8'
7070
with:
7171
name: dist-${{ matrix.python-version }}
@@ -79,7 +79,7 @@ jobs:
7979
id-token: write
8080
if: github.event_name != 'pull_request'
8181
steps:
82-
- uses: actions/download-artifact@v7
82+
- uses: actions/download-artifact@v8
8383

8484
- name: Organize files for upload
8585
run: |

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
long_description=long_description,
1818
long_description_content_type="text/markdown",
1919
packages=find_packages(exclude=("tests",)),
20-
setup_requires=["setuptools_scm<6"],
20+
setup_requires=[
21+
"setuptools_scm<6;python_version<'3.9'",
22+
"setuptools_scm;python_version>'3.8'",
23+
],
2124
use_scm_version={
2225
'local_scheme': 'no-local-version', # disable local-version to allow uploads to test.pypi.org
2326
},

0 commit comments

Comments
 (0)