forked from projectmesa/mesa-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into main
- Loading branch information
Showing
167 changed files
with
4,181 additions
and
3,023 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Test example models | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'examples/**/*.py' # If an example model is modified | ||
- 'test_examples.py' # If the test script is modified | ||
- '.github/workflows/test_examples.yml' # If this workflow is modified | ||
pull_request: | ||
paths: | ||
- 'examples/**/*.py' | ||
- 'test_examples.py' | ||
- '.github/workflows/test_examples.yml' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 * * 1' # Monday at 6:00 UTC | ||
|
||
jobs: | ||
# build-stable: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.12" | ||
# - name: Install dependencies | ||
# run: pip install mesa[network] pytest | ||
# - name: Test with pytest | ||
# run: pytest -rA -Werror test_examples.py | ||
|
||
build-pre: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
pip install mesa[network] --pre | ||
pip install .[test] | ||
- name: Test with pytest | ||
run: pytest -rA -Werror -Wdefault::FutureWarning test_examples.py | ||
|
||
build-main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
pip install .[test] | ||
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa[network] | ||
- name: Test with pytest | ||
run: pytest -rA -Werror -Wdefault::FutureWarning test_examples.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Test GIS models | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'gis/**/*.py' # If a gis model is modified | ||
- 'test_gis_examples.py' # If the gis test script is modified | ||
- '.github/workflows/test_gis_examples.yml' # If this workflow is modified | ||
pull_request: | ||
paths: | ||
- 'gis/**/*.py' | ||
- 'test_gis_examples.py' | ||
- '.github/workflows/test_gis_examples.yml' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 * * 1' # Monday at 6:00 UTC | ||
|
||
jobs: | ||
# build-stable: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.12" | ||
# - name: Install dependencies | ||
# run: pip install mesa pytest | ||
# - name: Test with pytest | ||
# run: pytest -rA -Werror test_examples.py | ||
|
||
build-pre: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
pip install mesa-geo --pre | ||
pip install .[test_gis] | ||
- name: Test with pytest | ||
run: pytest -rA -Werror test_gis_examples.py | ||
|
||
build-main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.