Skip to content

Commit 69e3331

Browse files
committed
💚 Use GITHUB_WORKSPACE variable to assign pycache location in CI
1 parent 658583b commit 69e3331

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

‎.github/workflows/test_client_macos_nightlies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
env:
3636
SIMVUE_URL: ${{ secrets.SIMVUE_NIGHTLY_URL }}
3737
SIMVUE_TOKEN: ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
38-
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=.pytest-cache
38+
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_client_ubuntu.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: >-
4343
python -m pytest tests/unit/ -x
4444
-m online -c /dev/null -p no:warnings
45-
-n 0 -v -o cache_dir=.pytest-cache
45+
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4646
offline_unit_tests:
4747
runs-on: ubuntu-latest
4848
timeout-minutes: 40
@@ -67,7 +67,7 @@ jobs:
6767
run: >-
6868
python -m pytest tests/unit/ -x
6969
-m offline -c /dev/null -p no:warnings
70-
-n 0 -v -o cache_dir=.pytest-cache
70+
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
7171
online_functional_tests:
7272
runs-on: ubuntu-latest
7373
timeout-minutes: 40
@@ -92,7 +92,7 @@ jobs:
9292
run: >-
9393
python -m pytest tests/functional/ -x
9494
-m online -c /dev/null -p no:warnings
95-
-n 0 -v -o cache_dir=.pytest-cache
95+
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
9696
offline_functional_tests:
9797
runs-on: ubuntu-latest
9898
timeout-minutes: 40
@@ -117,7 +117,7 @@ jobs:
117117
run: >-
118118
python -m pytest tests/functional/ -x
119119
-m offline -c /dev/null -p no:warnings
120-
-n 0 -v -o cache_dir=.pytest-cache
120+
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
121121
other_unit_tests:
122122
runs-on: ubuntu-latest
123123
timeout-minutes: 40
@@ -143,7 +143,7 @@ jobs:
143143
python -m pytest tests/unit/ -x
144144
-m 'not offline' -m 'not online'
145145
-m 'not scenario' -c /dev/null
146-
-p no:warnings -n 0 -v -o cache_dir=.pytest-cache
146+
-p no:warnings -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
147147
other_functional_tests:
148148
runs-on: ubuntu-latest
149149
timeout-minutes: 40
@@ -169,4 +169,4 @@ jobs:
169169
python -m pytest tests/functional/ -x
170170
-m 'not offline' -m 'not online'
171171
-m 'not scenario' -c /dev/null
172-
-p no:warnings -n 0 -v -o cache_dir=.pytest-cache
172+
-p no:warnings -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_client_ubuntu_nightlies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
env:
3939
SIMVUE_URL: ${{ secrets.SIMVUE_NIGHTLY_URL }}
4040
SIMVUE_TOKEN: ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
41-
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=.pytest-cache
41+
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_multiple_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
env:
4141
SIMVUE_URL: ${{ secrets.SIMVUE_NIGHTLY_URL }}
4242
SIMVUE_TOKEN: ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
43-
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=.pytest-cache
43+
run: python -m pytest tests/ -m 'not scenario' -c /dev/null -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

0 commit comments

Comments
 (0)