|
@@ -1,16 +1,16 @@
|
|
|
name: "[GHA][CPU] llama-recipes Pytest tests on CPU GitHub hosted runner."
|
|
|
on:
|
|
|
pull_request:
|
|
|
- branches:
|
|
|
+ branches:
|
|
|
- 'main'
|
|
|
paths:
|
|
|
- - 'src/llama-recipes/configs/*.py'
|
|
|
- - 'src/llama-recipes/utils/*.py'
|
|
|
- - 'src/llama-recipes/datasets/*.py'
|
|
|
- - 'src/llama-recipes/data/*.py'
|
|
|
- - 'src/llama-recipes/*.py'
|
|
|
+ - 'src/llama_recipes/configs/*.py'
|
|
|
+ - 'src/llama_recipes/utils/*.py'
|
|
|
+ - 'src/llama_recipes/datasets/*.py'
|
|
|
+ - 'src/llama_recipes/data/*.py'
|
|
|
+ - 'src/llama_recipes/*.py'
|
|
|
|
|
|
- # triggers workflow manually for debugging purposes.
|
|
|
+ # triggers workflow manually for debugging purposes.
|
|
|
workflow_dispatch:
|
|
|
inputs:
|
|
|
runner:
|
|
@@ -23,8 +23,8 @@ on:
|
|
|
required: false
|
|
|
default: "true"
|
|
|
|
|
|
-env:
|
|
|
- PYTORCH_WHEEL_URL: https://download.pytorch.org/whl/test/cu118
|
|
|
+env:
|
|
|
+ PYTORCH_WHEEL_URL: https://download.pytorch.org/whl/test/cu118
|
|
|
|
|
|
jobs:
|
|
|
execute_workflow:
|
|
@@ -63,7 +63,7 @@ jobs:
|
|
|
id: install_llama_recipes_package
|
|
|
run: |
|
|
|
echo "Installing 'llama-recipes' project (re: https://github.com/facebookresearch/llama-recipes?tab=readme-ov-file#install-with-optional-dependencies)"
|
|
|
- pip install --extra-index-url ${PYTORCH_WHEEL_URL} -e '.[tests]'
|
|
|
+ pip install --extra-index-url ${PYTORCH_WHEEL_URL} -e '.[tests]'
|
|
|
|
|
|
|
|
|
- name: "Running PyTest tests on GHA CPU Runner"
|
|
@@ -71,11 +71,10 @@ jobs:
|
|
|
run: |
|
|
|
echo "Running PyTest tests at 'GITHUB_WORKSPACE' path: ${GITHUB_WORKSPACE}"
|
|
|
cd $GITHUB_WORKSPACE && python3 -m pytest --junitxml="$GITHUB_WORKSPACE/result.xml"
|
|
|
-
|
|
|
+
|
|
|
- name: Publish Test Summary
|
|
|
id: test_summary
|
|
|
uses: test-summary/action@v2
|
|
|
with:
|
|
|
paths: "**/*.xml"
|
|
|
if: always()
|
|
|
-
|