Skip to content

Commit

Permalink
Fix the CI and test against Python 3.12 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
fitodic authored Sep 14, 2024
1 parent 597fc0a commit 36451c6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -101,10 +101,12 @@ jobs:
run: coverage run -m pytest

- name: Upload coverage data
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: ".coverage.*"
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
include-hidden-files: true
if-no-files-found: ignore

coverage:
name: Collect and report coverage
Expand All @@ -120,9 +122,10 @@ jobs:
- run: python -m pip install --upgrade coverage

- name: Download coverage data.
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage & check percentage
run: |
Expand All @@ -132,14 +135,14 @@ jobs:
python -m coverage xml
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov
if: ${{ failure() }}

- name: Upload XML report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage.xml
path: coverage.xml
Expand All @@ -156,7 +159,7 @@ jobs:
with:
python-version: "3.10"
- name: Download coverage data.
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: coverage.xml
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -199,7 +202,7 @@ jobs:
run: tox -e build

- name: Upload distributions
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
path: "dist/*"
Expand All @@ -212,7 +215,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Download distributions
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exclude = '''
| _build
| build
| dist
| venv
)/
)
'''
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Intended Audience :: Science/Research
Intended Audience :: Developers
Topic :: Scientific/Engineering :: GIS
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.7
envlist = lint,py{39,310},docs,manifest,pypi-description
envlist = lint,py{39,310,311,312},docs,manifest,pypi-description

[testenv]
description = run the test suite
Expand Down

0 comments on commit 36451c6

Please sign in to comment.