Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Test against mesa main, run weekly #87

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
rht marked this conversation as resolved.
Show resolved Hide resolved
- name: Test with pytest
run: pytest test_examples.py