File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - release**
8+ paths-ignore :
9+ - ' **.md'
10+ pull_request :
11+ paths-ignore :
12+ - ' **.md'
13+ workflow_dispatch :
14+ schedule :
15+ - cron : ' 0 6 * * 1'
16+
17+ # This will cancel previous run if a newer job that obsoletes the said previous
18+ # run, is started.
19+ # Based on https://github.com/zulip/zulip/commit/4a11642cee3c8aec976d305d51a86e60e5d70522
20+ concurrency :
21+ group : " ${{ github.workflow }}-${{ github.head_ref || github.run_id }}"
22+ cancel-in-progress : true
23+
24+ jobs :
25+ build :
26+ runs-on : ${{ matrix.os }}-latest
27+ # We need an explicit timeout because sometimes the batch_runner test never
28+ # completes.
29+ timeout-minutes : 6
30+ strategy :
31+ fail-fast : False
32+ matrix :
33+ os : [windows, ubuntu, macos]
34+ python-version : ["3.12"]
35+ include :
36+ - os : ubuntu
37+ python-version : " 3.11"
38+ - os : ubuntu
39+ python-version : " 3.10"
40+ # Disabled for now. See https://github.com/projectmesa/mesa/issues/1253
41+ # - os: ubuntu
42+ # python-version: 'pypy-3.8'
43+
44+ steps :
45+ - uses : actions/checkout@v4
46+ - name : Set up Python ${{ matrix.python-version }}
47+ uses : actions/setup-python@v5
48+ with :
49+ python-version : ${{ matrix.python-version }}
50+ cache : ' pip'
51+ - name : Install uv
52+ run : pip install uv
53+ - name : Install mesa-frames
54+ # See https://github.com/astral-sh/uv/issues/1945
55+ run : |
56+ uv pip install --system .[dev]
57+ - name : Test with pytest
58+ run : pytest --durations=10 --cov=mesa_frames tests/ --cov-report=xml
59+ - if : matrix.os == 'ubuntu'
60+ name : Codecov
61+ uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ pandas = [
2323polars = [
2424 " polars" ,
2525]
26+ dev = [
27+ " mesa_frames[pandas,polars]" ,
28+ " pytest" ,
29+ ]
2630
2731[tool .hatch .build .targets .wheel ]
2832packages = [" mesa_frames" ]
You can’t perform that action at this time.
0 commit comments