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/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
image: ${{ matrix.container-image }}
env:
PYTHON: ${{ matrix.python-version }}
permissions:
contents: read
runs-on: [ubuntu-latest]
strategy:
# Finish the other builds even if one fails.
Expand All @@ -27,13 +29,13 @@ jobs:
- python-version: '3.7'
container-image: python:3.7
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
# Fetch all the history so setuptools_scm can version relative to the
# most recent version tag.
fetch-depth: 0

- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
# Only set up Python if we're running directly on an agent. If we're in
# a container, the image should already provide the intended Python.
if: '! matrix.container-image'
Expand Down Expand Up @@ -81,15 +83,15 @@ jobs:
run: python -m build

- name: Upload coverage
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
if: matrix.python-version == '3.8'
with:
env_vars: PYTHON
# TODO: re-enable errors when rate limit is resolved?
# 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 @@ -103,7 +105,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
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
extras_require={
"dev": ["pytest", "mock", "pytest-cov<3"],
},
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 All @@ -35,4 +38,4 @@
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
],
)
)
Loading