19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- python-version : ["3.11"]
22
+ fail-fast : false
23
+ platform : ["ubuntu-latest", "macos-latest"]
24
+ python-version : ["3.9", "3.10", "3.11"]
23
25
24
26
steps :
25
27
- uses : actions/checkout@v3
@@ -46,59 +48,56 @@ jobs:
46
48
run : |
47
49
if [[ ${{ steps.changed-packages.outputs.training_changed }} == 'true' ]]; then
48
50
echo "Installing training from local source"
49
- pip install -e ./training[tests]
51
+ pip install -e ./training[all, tests]
50
52
else
51
53
echo "Installing training from PyPI"
52
- pip install anemoi-training[tests]
54
+ pip install anemoi-training[all, tests]
53
55
fi
54
56
55
57
- name : Install graphs package
56
58
run : |
57
59
if [[ ${{ steps.changed-packages.outputs.graphs_changed }} == 'true' ]]; then
58
60
echo "Installing graphs from local source"
59
- pip install -e ./graphs[tests]
61
+ pip install -e ./graphs[all, tests]
60
62
else
61
63
echo "Installing graphs from PyPI"
62
- pip install anemoi-graphs[tests]
64
+ pip install anemoi-graphs[all, tests]
63
65
fi
64
66
65
67
- name : Install models package
66
68
run : |
67
69
if [[ ${{ steps.changed-packages.outputs.models_changed }} == 'true' ]]; then
68
70
echo "Installing models from local source"
69
- pip install -e ./models[tests]
71
+ pip install -e ./models[all, tests]
70
72
else
71
73
echo "Installing models from PyPI"
72
- pip install anemoi-models[tests]
74
+ pip install anemoi-models[all, tests]
73
75
fi
74
76
75
77
- name : Run pytest for changed training package
76
78
if : steps.changed-packages.outputs.training_changed == 'true'
77
- uses : ecmwf-actions/reusable-workflows/.github/workflows/qa- pytest-pyproject.yml @v2
79
+ uses : pavelzw/ pytest-action @v2
78
80
with :
79
- python-version : ${{ matrix.python-version }}
80
- install-dependencies : false
81
- custom-pytest : pytest training/tests
81
+ report-title : " Test report Anemoi Training (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
82
+ custom-pytest : cd ./training && ${{ inputs.custom-pytest }}
82
83
83
84
- name : Run pytest for changed graphs package
84
85
if : steps.changed-packages.outputs.graphs_changed == 'true'
85
- uses : ecmwf-actions/reusable-workflows/.github/workflows/qa- pytest-pyproject.yml @v2
86
+ uses : pavelzw/ pytest-action @v2
86
87
with :
87
- python-version : ${{ matrix.python-version }}
88
- install-dependencies : false
89
- custom-pytest : pytest graphs/tests
88
+ report-title : " Test report Anemoi Graphs (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
89
+ custom-pytest : cd ./graphs && ${{ inputs.custom-pytest }}
90
90
91
91
- name : Run pytest for changed models package
92
92
if : steps.changed-packages.outputs.models_changed == 'true'
93
- uses : ecmwf-actions/reusable-workflows/.github/workflows/qa- pytest-pyproject.yml @v2
93
+ uses : pavelzw/ pytest-action @v2
94
94
with :
95
- python-version : ${{ matrix.python-version }}
96
- install-dependencies : false
97
- custom-pytest : pytest models/tests
95
+ report-title : " Test report Anemoi Models (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
96
+ custom-pytest : cd ./models && ${{ inputs.custom-pytest }}
98
97
99
98
- name : Run integration tests
100
99
if : success()
101
- uses : ecmwf-actions/reusable-workflows/.github/workflows/qa- pytest-pyproject.yml @v2
100
+ uses : pavelzw/ pytest-action @v2
102
101
with :
103
- python-version : ${{ matrix .python-version }}
104
- install-dependencies : false
102
+ report-title : " Test report Anemoi Core Integration (python ${{ inputs .python-version }} on ${{ matrix.platform }}) "
103
+ custom-pytest : pytest tests/
0 commit comments