Skip to content

Commit 8950a37

Browse files
run tests in CI
* run tests in CI for python 3.10, 3.11, 3.12 * fix warning due to class starting with 'Test' being picked up by pytest
1 parent c2a0d3f commit 8950a37

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python unit tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install .
27+
python -m pip install pytest numpy
28+
- name: Test with pytest
29+
run: |
30+
pytest

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def readme():
7070
author='Benoît Martin',
7171
author_email='bmartin@cea.fr',
7272

73-
python_requires='>=3.9',
73+
python_requires='>=3.10',
7474

7575
keywords='deisa in-situ',
7676

@@ -85,7 +85,7 @@ def readme():
8585
test_suite='test',
8686

8787
classifiers=[
88-
"Programming Language :: Python :: 3.9",
88+
"Programming Language :: Python :: 3.10",
8989
"License :: OSI Approved :: MIT License",
9090
"Operating System :: OS Independent",
9191
"Development Status :: 3 - Alpha"

test/test_deisa.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def test_reconstruct_global_dask_array_empty():
116116

117117

118118
class TestSimulation:
119+
__test__ = False
119120
def __init__(self, client: Client, global_grid_size: tuple, mpi_parallelism: tuple,
120121
arrays_metadata: dict[str, dict]):
121122
self.client = client

0 commit comments

Comments
 (0)