Skip to content

Commit

Permalink
remove python3.8, add 3.12 and update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter committed Aug 30, 2024
1 parent 1b6a857 commit ce8fe48
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
Expand All @@ -28,7 +28,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
#architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
architecture: 'x64'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
uses: actions/checkout@v4
with:
path: ./main
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: 'x64'
python-version: '3.10'
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
architecture: 'x64'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
Expand All @@ -32,7 +32,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
#architecture: 'x64'
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand All @@ -42,7 +41,7 @@ jobs:
- name: Run pytest
run: pytest brainprint --cov=brainprint --cov-report=xml --cov-config=pyproject.toml
- name: Upload to codecov
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == 3.9 }}
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ classifiers = [
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
]
dependencies = [
'numpy',
'numpy>=1.21',
'scipy!=1.13.0',
'pandas',
'lapy >= 1.0.0, <2',
'lapy>=1.0.0',
'psutil'
]

Expand Down Expand Up @@ -105,7 +105,7 @@ exclude = ['brainprint*tests']

[tool.black]
line-length = 88
target-version = ['py38']
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
(
Expand All @@ -122,7 +122,7 @@ extend-exclude = '''
profile = 'black'
multi_line_output = 3
line_length = 88
py_version = 38
py_version = 310
extend_skip_glob = [
'setup.py',
'data/*',
Expand Down

0 comments on commit ce8fe48

Please sign in to comment.