Skip to content

Commit

Permalink
CI: Test against mesa main, run weekly
Browse files Browse the repository at this point in the history
- Test against mesa main branch
- Run once a week (Monday 06:00 UTC) to test changing dependencies
  • Loading branch information
EwoutH authored and rht committed Jan 22, 2024
1 parent e28db2d commit fc13cf9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -21,7 +24,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -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

0 comments on commit fc13cf9

Please sign in to comment.