You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/docs_preview.yml
+68-4Lines changed: 68 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,56 @@ jobs:
28
28
- name: Checkout
29
29
uses: actions/checkout@v6
30
30
31
+
- name: Set up Python
32
+
uses: actions/setup-python@v6
33
+
with:
34
+
python-version: '3.13'
35
+
36
+
- name: Install Python Dependencies
37
+
run: |
38
+
python -m pip install --upgrade pip
39
+
pip install .[test]
40
+
pip install Pillow
41
+
42
+
- name: Pre-install Addons (Web)
43
+
run: |
44
+
mkdir -p src/switchcraft/addons
45
+
python -c "import zipfile, os, glob; from pathlib import Path; [zipfile.ZipFile(z).extractall(Path('src/switchcraft/addons') / Path(z).stem.replace('switchcraft_', '')) for z in glob.glob('src/switchcraft/assets/addons/*.zip')]"
0 commit comments