Fix AgentSet iteration fails on Python 3.14 with "dictionary changed size during iteration- Issue #2896 #3670
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| branches: | |
| - main | |
| - release** | |
| paths-ignore: | |
| - '**.md' | |
| - '**.rst' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - '**.rst' | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 6 * * 1' | |
| permissions: | |
| id-token: write | |
| jobs: | |
| release: | |
| name: Deploy release to PyPI | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| allow-prereleases: true | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: pip install -U pip hatch | |
| - name: Build distributions | |
| run: hatch build | |
| - name: Upload package as artifact to GitHub | |
| if: github.repository == 'projectmesa/mesa' && startsWith(github.ref, 'refs/tags') | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: package | |
| path: dist/ | |
| - name: Publish package to PyPI | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@release/v1 |