Skip to content

Commit 49342ea

Browse files
committed
Update optional dependencies and CI
1 parent efffb67 commit 49342ea

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/test_examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: |
4242
pip install mesa --pre
43-
pip install pytest
43+
pip install .[test]
4444
- name: Test with pytest
4545
run: pytest -rA -Werror test_examples.py
4646

@@ -54,7 +54,7 @@ jobs:
5454
python-version: "3.12"
5555
- name: Install dependencies
5656
run: |
57-
pip install pytest
57+
pip install .[test]
5858
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
5959
- name: Test with pytest
6060
run: pytest -rA -Werror test_examples.py

.github/workflows/test_gis_examples.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ jobs:
3939
python-version: "3.12"
4040
- name: Install dependencies
4141
run: |
42-
pip install mesa mesa-geo --pre
42+
pip install mesa-geo --pre
4343
pip install .[test_gis]
44-
pip install pytest
4544
- name: Test with pytest
4645
run: pytest -rA -Werror test_gis_examples.py
4746

@@ -55,8 +54,7 @@ jobs:
5554
python-version: "3.12"
5655
- name: Install dependencies
5756
run: |
58-
pip install pytest
59-
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
6057
pip install -U git+https://github.com/projectmesa/mesa-geo@main#egg=mesa-geo
58+
pip install .[test_gis]
6159
- name: Test with pytest
6260
run: pytest -rA -Werror test_gis_examples.py

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ readme = "README.rst"
1010
requires-python = ">=3.8"
1111

1212
[project.optional-dependencies]
13-
test = [""]
13+
test = [
14+
"pytest",
15+
]
1416
test_gis = [
15-
"momepy",
17+
"pytest",
18+
"momepy",
1619
]
1720

1821
[build-system]

0 commit comments

Comments
 (0)