Skip to content

Commit 0d0c3e3

Browse files
committed
Setup python matrix for testing
- Only runs after formatting - Update to dependencies to include other versions of python support
1 parent 151dbfb commit 0d0c3e3

3 files changed

Lines changed: 756 additions & 731 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
UV_FROZEN: true
1111

1212
jobs:
13-
test:
13+
format:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18-
submodules: 'true'
18+
submodules: "true"
1919
- name: Install uv
2020
uses: astral-sh/setup-uv@v5
2121
with:
@@ -26,9 +26,24 @@ jobs:
2626
run: |
2727
uv run ruff check bids2table tests
2828
uv run ruff format --check bids2table tests
29+
30+
tests:
31+
runs-on: ubuntu-latest
32+
needs: format
33+
strategy:
34+
matrix:
35+
python-version: ["3.11", "3.12", "3.13"]
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
submodules: "true"
40+
- name: Install uv with python version
41+
uses: astral-sh/setup-uv@v6
42+
with:
43+
python-version: ${{ matrix.python-version }}
2944
- name: Run tests
3045
run: |
31-
uv run pytest \
46+
uv run --all-extras pytest \
3247
--junitxml=pytest.xml \
3348
--cov-report=xml:coverage.xml \
3449
--cov=bids2table tests

pyproject.toml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "bids2table"
77
dynamic = ["version"]
8-
authors = [
9-
{ name = "Connor Lane", email = "connor.lane858@gmail.com" },
10-
]
8+
authors = [{ name = "Connor Lane", email = "connor.lane858@gmail.com" }]
119
description = "Index BIDS datasets fast, locally or in the cloud."
1210
readme = "README.md"
1311
requires-python = ">=3.11"
14-
license = {text = "MIT License"}
12+
license = { text = "MIT License" }
1513
classifiers = [
1614
"Development Status :: 3 - Alpha",
1715
"Intended Audience :: Developers",
@@ -20,24 +18,17 @@ classifiers = [
2018
"Programming Language :: Python :: 3.11",
2119
"Programming Language :: Python :: 3.12",
2220
"Programming Language :: Python :: 3.13",
23-
"Programming Language :: Python :: 3.14",
2421
"License :: OSI Approved :: MIT License",
2522
"Operating System :: POSIX",
2623
"Operating System :: Unix",
2724
"Operating System :: MacOS",
2825
"Operating System :: Microsoft :: Windows",
2926
]
3027

31-
dependencies = [
32-
"bidsschematools>=1.0",
33-
"pyarrow>=14.0.2",
34-
"tqdm>=4.66.2",
35-
]
28+
dependencies = ["bidsschematools>=1.0", "pyarrow>=20.0.0", "tqdm>=4.67.1"]
3629

3730
[project.optional-dependencies]
38-
s3 = [
39-
"cloudpathlib[s3]>=0.17.0",
40-
]
31+
s3 = ["cloudpathlib[s3]>=0.17.0"]
4132

4233
[dependency-groups]
4334
dev = [
@@ -48,7 +39,7 @@ dev = [
4839
"pre-commit>=4.1.0",
4940
"pytest>=8.3.5",
5041
"pytest-cov>=6.0.0",
51-
"ruff>=0.9.10",
42+
"ruff>=0.11.9",
5243
]
5344

5445
[project.urls]

0 commit comments

Comments
 (0)