Test GIS examples #68
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
name: Test GIS examples | |
on: | |
push: | |
branches: | |
- main | |
- release** | |
- "**maintenance" | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' | |
jobs: | |
examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: 'pip' | |
- name: Install uv | |
run: pip install uv | |
- name: Install Mesa | |
run: uv pip install --system .[examples] | |
- name: Checkout mesa-examples | |
uses: actions/checkout@v4 | |
with: | |
repository: projectmesa/mesa-examples | |
path: mesa-examples | |
- name: Test examples | |
run: | | |
cd mesa-examples | |
pytest -rA -Werror -Wdefault::FutureWarning test_gis_examples.py |