1
1
name : " [GHA][CPU] llama-recipes Pytest tests on CPU GitHub hosted runner."
2
2
on :
3
3
pull_request :
4
- branches :
4
+ branches :
5
5
- ' main'
6
6
paths :
7
- - ' src/llama-recipes /configs/*.py'
8
- - ' src/llama-recipes /utils/*.py'
9
- - ' src/llama-recipes /datasets/*.py'
10
- - ' src/llama-recipes /data/*.py'
11
- - ' src/llama-recipes /*.py'
7
+ - ' src/llama_recipes /configs/*.py'
8
+ - ' src/llama_recipes /utils/*.py'
9
+ - ' src/llama_recipes /datasets/*.py'
10
+ - ' src/llama_recipes /data/*.py'
11
+ - ' src/llama_recipes /*.py'
12
12
13
- # triggers workflow manually for debugging purposes.
13
+ # triggers workflow manually for debugging purposes.
14
14
workflow_dispatch :
15
15
inputs :
16
16
runner :
23
23
required : false
24
24
default : " true"
25
25
26
- env :
27
- PYTORCH_WHEEL_URL : https://download.pytorch.org/whl/test/cu118
26
+ env :
27
+ PYTORCH_WHEEL_URL : https://download.pytorch.org/whl/test/cu118
28
28
29
29
jobs :
30
30
execute_workflow :
@@ -63,19 +63,18 @@ jobs:
63
63
id : install_llama_recipes_package
64
64
run : |
65
65
echo "Installing 'llama-recipes' project (re: https://github.com/facebookresearch/llama-recipes?tab=readme-ov-file#install-with-optional-dependencies)"
66
- pip install --extra-index-url ${PYTORCH_WHEEL_URL} -e '.[tests]'
66
+ pip install --extra-index-url ${PYTORCH_WHEEL_URL} -e '.[tests]'
67
67
68
68
69
69
- name : " Running PyTest tests on GHA CPU Runner"
70
70
id : pytest
71
71
run : |
72
72
echo "Running PyTest tests at 'GITHUB_WORKSPACE' path: ${GITHUB_WORKSPACE}"
73
73
cd $GITHUB_WORKSPACE && python3 -m pytest --junitxml="$GITHUB_WORKSPACE/result.xml"
74
-
74
+
75
75
- name : Publish Test Summary
76
76
id : test_summary
77
77
uses : test-summary/action@v2
78
78
with :
79
79
paths : " **/*.xml"
80
80
if : always()
81
-
0 commit comments