ops: Correcting cache paths

This commit is contained in:
Karim shoair
2025-06-27 17:16:35 +03:00
parent d603c15212
commit ee1a0828a2
+6 -8
View File
@@ -31,8 +31,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/ms-playwright ~/Library/Caches/camoufox
~/.camoufox
~/Library/Caches/ms-playwright ~/Library/Caches/ms-playwright
key: browsers-${{ runner.os }}-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}-playwright-1.52.0-camoufox-latest key: browsers-${{ runner.os }}-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}-playwright-1.52.0-camoufox-latest
restore-keys: | restore-keys: |
@@ -80,8 +79,8 @@ jobs:
# Verify browsers are installed # Verify browsers are installed
- name: Verify browser installation - name: Verify browser installation
run: | run: |
ls -la ~/.cache/ms-playwright/ || true ls -la ~/Library/Caches/ms-playwright/ || true
ls -la ~/.camoufox/ || true ls -la ~/Library/Caches/camoufox/ || true
echo "Browser setup completed successfully!" echo "Browser setup completed successfully!"
# Step 2: Run tests using cached browsers # Step 2: Run tests using cached browsers
@@ -112,8 +111,7 @@ jobs:
uses: actions/cache/restore@v4 uses: actions/cache/restore@v4
with: with:
path: | path: |
~/.cache/ms-playwright ~/Library/Caches/camoufox
~/.camoufox
~/Library/Caches/ms-playwright ~/Library/Caches/ms-playwright
key: browsers-${{ runner.os }}-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}-playwright-1.52.0-camoufox-latest key: browsers-${{ runner.os }}-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}-playwright-1.52.0-camoufox-latest
restore-keys: | restore-keys: |
@@ -138,8 +136,8 @@ jobs:
- name: Verify browsers are available - name: Verify browsers are available
run: | run: |
ls -la ~/.cache/ms-playwright/ || echo "Playwright cache not found" ls -la ~/Library/Caches/ms-playwright/ || echo "Playwright cache not found"
ls -la ~/.camoufox/ || echo "Camoufox cache not found" ls -la ~/Library/Caches/camoufox/ || echo "Camoufox cache not found"
- name: Run tests - name: Run tests
env: env: