Skip to content

Commit

Permalink
Update optional dependencies and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 25, 2024
1 parent efffb67 commit 49342ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install dependencies
run: |
pip install mesa --pre
pip install pytest
pip install .[test]
- name: Test with pytest
run: pytest -rA -Werror test_examples.py

Expand All @@ -54,7 +54,7 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: |
pip install pytest
pip install .[test]
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
- name: Test with pytest
run: pytest -rA -Werror test_examples.py
6 changes: 2 additions & 4 deletions .github/workflows/test_gis_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: |
pip install mesa mesa-geo --pre
pip install mesa-geo --pre
pip install .[test_gis]
pip install pytest
- name: Test with pytest
run: pytest -rA -Werror test_gis_examples.py

Expand All @@ -55,8 +54,7 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: |
pip install pytest
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
pip install -U git+https://github.com/projectmesa/mesa-geo@main#egg=mesa-geo
pip install .[test_gis]
- name: Test with pytest
run: pytest -rA -Werror test_gis_examples.py
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ readme = "README.rst"
requires-python = ">=3.8"

[project.optional-dependencies]
test = [""]
test = [
"pytest",
]
test_gis = [
"momepy",
"pytest",
"momepy",
]

[build-system]
Expand Down

0 comments on commit 49342ea

Please sign in to comment.