1+ # Same key-value pairs as in "Defining Our Workflow" section
12name : CI
2-
3- # We can specify which Github events will trigger a CI build
43on : push
5-
6- # now define a single job 'build' (but could define more)
74jobs :
8-
95 build :
106
11- # we can also specify the OS to run tests on
12- runs-on : ubuntu-latest
7+ # Here we add the matrices definition:
8+ strategy :
9+ matrix :
10+ os : ["ubuntu-latest", "macos-latest", "windows-latest"]
11+ python-version : ["3.10", "3.11"]
1312
14- # a job is a seq of steps
13+ # Here we add the reference to the os matrix values
14+ runs-on : ${{ matrix.os }}
15+
16+ # Same key-value pairs as in "Defining Our Workflow" section
1517 steps :
1618
17- # Next we need to checkout out repository, and set up Python
18- # A 'name' is just an optional label shown in the log - helpful to clarify progress - and can be anything
1919 - name : Checkout repository
2020 uses : actions/checkout@v4
2121
22- - name : Set up Python 3.11
22+ - name : Set up Python
2323 uses : actions/setup-python@v5
2424 with :
25- python-version : " 3.11"
26-
25+ # Here we add the reference to the python-version matrix values
26+ python-version : ${{ matrix.python-version }}
27+ # Same steps as in "Defining Our Workflow" section
2728 - name : Install Python dependencies
2829 run : |
2930 python3 -m pip install --upgrade pip
3031 python3 -m pip install -r requirements.txt
31-
3232 - name : Test with PyTest
3333 run : |
34- python3 -m pytest --cov=inflammation .models tests/test_models.py
34+ python3 -m pytest --cov=catchment .models tests/test_models.py
0 commit comments