From b2385eea4dc565ee64fa7a274dbe7e5baa759c46 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Wed, 14 Aug 2024 09:57:12 +0200 Subject: [PATCH] CI: Add job to test with pre-release dependencies, including Mesa 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. --- .github/workflows/build_lint.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml index cefac6f7..0b9b212b 100644 --- a/.github/workflows/build_lint.yml +++ b/.github/workflows/build_lint.yml @@ -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 @@ -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 \ No newline at end of file + uses: codecov/codecov-action@v4