Skip to content

Commit 6748b6f

Browse files
committed
Correct gha runner workflow
1 parent 1de6ac3 commit 6748b6f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/pytest_cpu_gha_runner.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: "[GHA][CPU] llama-recipes Pytest tests on CPU GitHub hosted runner."
22
on:
33
pull_request:
4-
branches:
4+
branches:
55
- 'main'
66
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'
1212

13-
# triggers workflow manually for debugging purposes.
13+
# triggers workflow manually for debugging purposes.
1414
workflow_dispatch:
1515
inputs:
1616
runner:
@@ -23,8 +23,8 @@ on:
2323
required: false
2424
default: "true"
2525

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
2828

2929
jobs:
3030
execute_workflow:
@@ -63,19 +63,18 @@ jobs:
6363
id: install_llama_recipes_package
6464
run: |
6565
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]'
6767
6868
6969
- name: "Running PyTest tests on GHA CPU Runner"
7070
id: pytest
7171
run: |
7272
echo "Running PyTest tests at 'GITHUB_WORKSPACE' path: ${GITHUB_WORKSPACE}"
7373
cd $GITHUB_WORKSPACE && python3 -m pytest --junitxml="$GITHUB_WORKSPACE/result.xml"
74-
74+
7575
- name: Publish Test Summary
7676
id: test_summary
7777
uses: test-summary/action@v2
7878
with:
7979
paths: "**/*.xml"
8080
if: always()
81-

0 commit comments

Comments
 (0)