Skip to content

Commit 5f6a967

Browse files
committed
test oneapi ci job using with, path
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent 89eab97 commit 5f6a967

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ on:
99
branches:
1010
- app/dev
1111

12-
#TRIGGER on pull request if changes to below file-paths.
12+
#TRIGGER on PR if changes made to below file-paths.
1313
pull_request:
1414
types:
1515
- opened
1616
- synchronize
1717
branches:
1818
- master
1919
paths:
20-
- "src/db.py"
21-
- "src/requirements.txt"
22-
- "src/docs/conf.py"
23-
- "src/docs/Makefile"
24-
- "src/docs/make.bat"
25-
- "src/docs/_static/styles.css"
26-
- "src/docs/_static/intel.css"
27-
- "src/docs/_static/assets/logo-energyblue-white.svg"
28-
- "src/docs/_static/sample_db_prd.json"
29-
- "src/docs/_static/assets/favicon.ico"
30-
- "src/docs/_static/script.js"
31-
- "src/docs/_templates/base.html"
32-
- "src/docs/_templates/index.html"
20+
- "app/dev/src/db.py"
21+
- "app/dev/src/requirements.txt"
22+
- "app/dev/src/docs/conf.py"
23+
- "app/dev/src/docs/Makefile"
24+
- "app/dev/src/docs/make.bat"
25+
- "app/dev/src/docs/_static/styles.css"
26+
- "app/dev/src/docs/_static/intel.css"
27+
- "app/dev/src/docs/_static/assets/logo-energyblue-white.svg"
28+
- "app/dev/src/docs/_static/sample_db_prd.json"
29+
- "app/dev/src/docs/_static/assets/favicon.ico"
30+
- "app/dev/src/docs/_static/script.js"
31+
- "app/dev/src/docs/_templates/base.html"
32+
- "app/dev/src/docs/_templates/index.html"
3333

3434
# defaults:
3535
# run:
@@ -48,9 +48,9 @@ jobs:
4848

4949
# - run: find | sort
5050
- uses: actions/checkout@v3
51-
# with:
52-
# path: app/dev
53-
# Adding above forces pre-pending filepaths below w/ 'app/dev/filepath'
51+
with:
52+
path: app/dev
53+
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'
5454

5555
- uses: actions/checkout@v3
5656
name: Check out master
@@ -61,24 +61,24 @@ jobs:
6161
# TODO: change to 'python3 app/dev/src/db.py master' per actions/checkout@3
6262
- name: Build JSON DB
6363
run: |
64-
python3 -m pip install -r src/requirements.txt
64+
python3 -m pip install -r app/dev/src/requirements.txt
6565
echo master
66-
python3 src/db.py master
66+
python3 app/dev/src/db.py master
6767
6868
- name: Remove JSON pre-prod
6969
run: |
70-
rm -rf src/docs/sample_db_pre.json
70+
rm -rf app/dev/src/docs/sample_db_pre.json
7171
7272
- name: Build Sphinx
7373
run: |
74-
python3 -m pip install -r src/requirements.txt
75-
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
74+
python3 -m pip install -r app/dev/src/requirements.txt
75+
python3 -m sphinx -W -b html app/dev/src/docs/ app/dev/src/docs/_build/
7676
echo $PWD
7777
echo ${{ github.ref }}
7878
7979
- name: Add GPU-Occupancy-Calculator
8080
env:
81-
GPU_OCC_CALC: src/docs/_build/Tools/GPU-Occupancy-Calculator/
81+
GPU_OCC_CALC: app/dev/src/docs/_build/Tools/GPU-Occupancy-Calculator/
8282
run: |
8383
mkdir -p ${GPU_OCC_CALC}
8484
cd ${GPU_OCC_CALC}
@@ -91,7 +91,7 @@ jobs:
9191
GITHUB_TOKEN: ${{ github.token }}
9292
GITHUB_REPO: ${{ github.repository }}
9393
run: |
94-
cd src/docs/_build/
94+
cd app/dev/src/docs/_build/
9595
touch .nojekyll
9696
git init
9797
git remote add origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}"

0 commit comments

Comments
 (0)