@@ -3,16 +3,16 @@ name: build
3
3
on :
4
4
push :
5
5
branches :
6
- - main
7
- - release**
6
+ - main
7
+ - release**
8
8
paths-ignore :
9
- - ' **.md'
9
+ - " **.md"
10
10
pull_request :
11
11
paths-ignore :
12
- - ' **.md'
12
+ - " **.md"
13
13
workflow_dispatch :
14
14
schedule :
15
- - cron : ' 0 6 * * 1'
15
+ - cron : " 0 6 * * 1"
16
16
17
17
# This will cancel previous run if a newer job that obsoletes the said previous
18
18
# run, is started.
@@ -42,46 +42,48 @@ jobs:
42
42
# python-version: 'pypy-3.8'
43
43
44
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
- allow-prereleases : true
51
- cache : ' pip'
52
- - name : Install uv
53
- run : pip install uv
54
- - name : Install Mesa and dependencies
55
- run : uv pip install --system .[dev]
56
- - name : Test with pytest
57
- run : pytest --durations=10 --cov=mesa tests/ --cov-report=xml
58
- - if : matrix.os == 'ubuntu'
59
- name : Codecov
60
- uses : codecov/codecov-action@v5
61
- with :
62
- fail_ci_if_error : true
63
- token : ${{ secrets.CODECOV_TOKEN }}
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
+ allow-prereleases : true
51
+ cache : " pip"
52
+ - name : Install uv
53
+ run : pip install uv
54
+ - name : Install Mesa and dependencies
55
+ run : uv pip install --system .[dev]
56
+ - name : Setup Playwright
57
+ run : playwright install
58
+ - name : Test with pytest
59
+ run : pytest --durations=10 --cov=mesa tests/ --cov-report=xml
60
+ - if : matrix.os == 'ubuntu'
61
+ name : Codecov
62
+ uses : codecov/codecov-action@v5
63
+ with :
64
+ fail_ci_if_error : true
65
+ token : ${{ secrets.CODECOV_TOKEN }}
64
66
65
67
examples :
66
68
runs-on : ubuntu-latest
67
69
steps :
68
- - uses : actions/checkout@v4
69
- - name : Set up Python
70
- uses : actions/setup-python@v5
71
- with :
72
- python-version : " 3.13"
73
- allow-prereleases : true
74
- cache : ' pip'
75
- - name : Install uv
76
- run : pip install uv
77
- - name : Install Mesa
78
- run : uv pip install --system .[examples]
79
- - name : Checkout mesa-examples
80
- uses : actions/checkout@v4
81
- with :
82
- repository : projectmesa/mesa-examples
83
- path : mesa-examples
84
- - name : Test examples
85
- run : |
86
- cd mesa-examples
87
- pytest -rA -Werror -Wdefault::FutureWarning -Wi::DeprecationWarning test_examples.py
70
+ - uses : actions/checkout@v4
71
+ - name : Set up Python
72
+ uses : actions/setup-python@v5
73
+ with :
74
+ python-version : " 3.13"
75
+ allow-prereleases : true
76
+ cache : " pip"
77
+ - name : Install uv
78
+ run : pip install uv
79
+ - name : Install Mesa
80
+ run : uv pip install --system .[examples]
81
+ - name : Checkout mesa-examples
82
+ uses : actions/checkout@v4
83
+ with :
84
+ repository : projectmesa/mesa-examples
85
+ path : mesa-examples
86
+ - name : Test examples
87
+ run : |
88
+ cd mesa-examples
89
+ pytest -rA -Werror -Wdefault::FutureWarning -Wi::DeprecationWarning test_examples.py
0 commit comments