From fc13cf931fa15ed580270dd57a068704f49d4b79 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Mon, 22 Jan 2024 08:51:11 +0100 Subject: [PATCH] CI: Test against mesa main, run weekly - Test against mesa main branch - Run once a week (Monday 06:00 UTC) to test changing dependencies --- .github/workflows/build_lint.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml index cef57840..d8b06cde 100644 --- a/.github/workflows/build_lint.yml +++ b/.github/workflows/build_lint.yml @@ -12,6 +12,9 @@ on: paths-ignore: - '**.md' - '**.rst' + workflow_dispatch: + schedule: + - cron: '0 6 * * 1' # Monday at 6:00 UTC # This will cancel previous run if a newer job that obsoletes the said previous # run, is started. @@ -21,7 +24,7 @@ concurrency: cancel-in-progress: true jobs: - build: + build-stable: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -33,3 +36,18 @@ jobs: run: pip install mesa pytest - name: Test with pytest run: pytest 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 pytest + pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa + - name: Test with pytest + run: pytest test_examples.py