Skip to content

Commit

Permalink
CI: Add job to test with pre-release dependencies, including Mesa
Browse files Browse the repository at this point in the history
Add job to the test matrix which installs pre-release dependencies, including Mesa pre-releases (like the current 3.0 alpha builds). This gives an early warning if a pre-release will break Mesa-geo and it allows to check if Mesa-geo also works with the latest Mesa pre-release.
  • Loading branch information
EwoutH authored Aug 14, 2024
1 parent 4bd9c80 commit 228d8ff
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ jobs:
matrix:
os: [windows, ubuntu, macos]
python-version: ["3.12"]
name: [""]
include:
- os: ubuntu
python-version: "3.11"
- os: ubuntu
python-version: "3.10"
# Disabled for now. See https://github.com/projectmesa/mesa/issues/1253
#- os: ubuntu
# python-version: 'pypy-3.8'
- os: ubuntu
python-version: "3.12"
pip-pre: "--pre" # Installs pre-release versions of pip dependencies
name: "Pre-release dependencies" # Mainly to test Mesa pre-releases

steps:
- uses: actions/checkout@v4
Expand All @@ -54,9 +56,9 @@ jobs:
run: pip install uv
- name: Install Mesa-Geo
# See https://github.com/astral-sh/uv/issues/1945
run: uv pip install --system .[dev]
run: uv pip install --system .[dev] ${{ matrix.pip-pre }}
- name: Test with pytest
run: pytest --durations=10 --cov=mesa_geo tests/ --cov-report=xml
- if: matrix.os == 'ubuntu'
name: Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v4

0 comments on commit 228d8ff

Please sign in to comment.