Skip to content

Commit fc13cf9

Browse files
EwoutHrht
authored andcommitted
CI: Test against mesa main, run weekly
- Test against mesa main branch - Run once a week (Monday 06:00 UTC) to test changing dependencies
1 parent e28db2d commit fc13cf9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build_lint.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
paths-ignore:
1313
- '**.md'
1414
- '**.rst'
15+
workflow_dispatch:
16+
schedule:
17+
- cron: '0 6 * * 1' # Monday at 6:00 UTC
1518

1619
# This will cancel previous run if a newer job that obsoletes the said previous
1720
# run, is started.
@@ -21,7 +24,7 @@ concurrency:
2124
cancel-in-progress: true
2225

2326
jobs:
24-
build:
27+
build-stable:
2528
runs-on: ubuntu-latest
2629
steps:
2730
- uses: actions/checkout@v4
@@ -33,3 +36,18 @@ jobs:
3336
run: pip install mesa pytest
3437
- name: Test with pytest
3538
run: pytest test_examples.py
39+
40+
build-main:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Set up Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.12"
48+
- name: Install dependencies
49+
run: |
50+
pip install pytest
51+
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
52+
- name: Test with pytest
53+
run: pytest test_examples.py

0 commit comments

Comments
 (0)