Skip to content

Commit

Permalink
Merge pull request #13 from BlueBrain/zisis/update-ci
Browse files Browse the repository at this point in the history
Add python3.11 and remove python3.7 in ci
  • Loading branch information
eleftherioszisis authored Jun 29, 2023
2 parents 18232e8 + dceccc9 commit 5bc0065
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -26,10 +26,10 @@ jobs:
run: |
tox
- name: Upload to codecov
if: ${{matrix.python-version == '3.9'}}
if: ${{matrix.python-version == '3.10'}}
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
files: ./coverage.xml
flags: pytest
name: "vascpy-py39"
name: "vascpy-py310"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
name="vascpy",
description="Vasculature API",
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[base]
name = vascpy
testdeps =
mock
pytest

[tox]
minversion = 3.1.0
envlist =
py{38,39}
py39-lint
py39-coverage
py{38,39,310,311}
py310-lint
py310-coverage
ignore_basepython_conflict = true

[testenv]
Expand All @@ -25,7 +24,7 @@ commands =
isort -l 100 --profile black {[base]name} tests setup.py
black -l 100 {[base]name} tests setup.py

[testenv:py39-lint]
[testenv:py310-lint]
deps =
mypy
isort
Expand All @@ -40,7 +39,7 @@ commands =
pycodestyle {[base]name}
pylint -j2 --ignored-modules=vtk {[base]name}

[testenv:py39-coverage]
[testenv:py310-coverage]
deps =
{[base]testdeps}
pytest-cov
Expand Down Expand Up @@ -78,3 +77,4 @@ python =
3.8 : py38
3.9 : py39
3.10: py310
3.11: py311

0 comments on commit 5bc0065

Please sign in to comment.