Skip to content

Commit 6b29a24

Browse files
authored
Update github actions and fix readthedocs (#3983)
* Update upload-artifact and checkout actions * Try to fix the documentation build * Update download-artifact action * Update python version in CI (3.8 -> 3.13) * Use python 3.12 in test.yml workflow, to fix the documentation and the UI test * Update snapshots, and restore the default python version to 3.13 in CI, except for documentation test
1 parent 9c3aaf2 commit 6b29a24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+30
-28
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Install Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.8'
19+
python-version: '3.13'
2020
architecture: 'x64'
2121

2222
- name: Cache pip on Linux

.github/workflows/devinstall.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: Install Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.8'
18+
python-version: '3.13'
1919
architecture: 'x64'
2020
- name: Cache pip on Linux
2121
uses: actions/cache@v3

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- name: Install Python
1414
uses: actions/setup-python@v4
1515
with:
16-
python-version: '3.8'
16+
python-version: '3.13'
1717
architecture: 'x64'
1818

1919
- name: Install dependencies

.github/workflows/packaging.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Install Python
2525
uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.11'
27+
python-version: '3.13'
2828
architecture: 'x64'
2929

3030
- uses: actions/cache@v3
@@ -71,7 +71,7 @@ jobs:
7171
sha256sum * | tee SHA256SUMS
7272
7373
- name: Upload distributions
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: dist ${{ github.run_number }}
7777
path: ./dist
@@ -83,16 +83,16 @@ jobs:
8383
fail-fast: false
8484
matrix:
8585
os: [ubuntu, windows]
86-
python: ['3.7', '3.10']
86+
python: ['3.8', '3.13']
8787
dist: ['ipywidgets*.tar.gz']
8888
include:
89-
- python: '3.10'
89+
- python: '3.13'
9090
dist: 'jupyterlab_widgets*.tar.gz'
9191
os: 'ubuntu'
92-
- python: '3.10'
92+
- python: '3.13'
9393
dist: 'widgetsnbextension*.tar.gz'
9494
os: 'ubuntu'
95-
- python: '3.10'
95+
- python: '3.13'
9696
dist: 'ipywidgets*.whl'
9797
os: 'ubuntu'
9898
steps:
@@ -102,7 +102,7 @@ jobs:
102102
python-version: ${{ matrix.python }}
103103
architecture: 'x64'
104104
- name: Checkout # For the cache keys
105-
uses: actions/checkout@v3
105+
uses: actions/checkout@v4
106106

107107
- name: Get pip cache dir
108108
id: pip-cache
@@ -119,7 +119,7 @@ jobs:
119119
- name: Install the prerequisites
120120
run: |
121121
python -m pip install pip
122-
- uses: actions/download-artifact@v3
122+
- uses: actions/download-artifact@v4
123123
with:
124124
name: dist ${{ github.run_number }}
125125
path: ./dist

.github/workflows/tests.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
name: Documentation
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: Set up Python
1212
uses: actions/setup-python@v4
1313
with:
14-
python-version: 3.8
14+
python-version: '3.12'
1515
cache: 'pip'
1616
cache-dependency-path: |
1717
**/setup.cfg
@@ -30,11 +30,11 @@ jobs:
3030
name: JavaScript
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- name: Set up Python
3535
uses: actions/setup-python@v4
3636
with:
37-
python-version: 3.8
37+
python-version: '3.13'
3838
cache: 'pip'
3939
cache-dependency-path: |
4040
**/setup.cfg
@@ -77,10 +77,10 @@ jobs:
7777
strategy:
7878
max-parallel: 4
7979
matrix:
80-
python-version: ['3.8', '3.9', '3.10', '3.11']
80+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
8181

8282
steps:
83-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8484
- name: Set up Python ${{ matrix.python-version }}
8585
uses: actions/setup-python@v4
8686
with:
@@ -104,11 +104,11 @@ jobs:
104104
name: Message Specification
105105
runs-on: ubuntu-latest
106106
steps:
107-
- uses: actions/checkout@v3
107+
- uses: actions/checkout@v4
108108
- name: Set up Python
109109
uses: actions/setup-python@v4
110110
with:
111-
python-version: 3.8
111+
python-version: '3.13'
112112
cache: 'pip'
113113
cache-dependency-path: |
114114
**/setup.cfg
@@ -131,11 +131,11 @@ jobs:
131131
runs-on: ubuntu-latest
132132

133133
steps:
134-
- uses: actions/checkout@v3
134+
- uses: actions/checkout@v4
135135
- name: Set up Python
136136
uses: actions/setup-python@v4
137137
with:
138-
python-version: '3.11'
138+
python-version: '3.13'
139139
cache: 'pip'
140140
cache-dependency-path: |
141141
**/setup.cfg
@@ -178,15 +178,15 @@ jobs:
178178
179179
- name: Upload Playwright Test assets
180180
if: always()
181-
uses: actions/upload-artifact@v3
181+
uses: actions/upload-artifact@v4
182182
with:
183183
name: ipywidgets-test-assets
184184
path: |
185185
ui-tests/test-results
186186
187187
- name: Upload Playwright Test report
188188
if: always()
189-
uses: actions/upload-artifact@v3
189+
uses: actions/upload-artifact@v4
190190
with:
191191
name: ipywidgets-test-report
192192
path: |
@@ -200,7 +200,7 @@ jobs:
200200
201201
- name: Upload updated snapshots
202202
if: failure()
203-
uses: actions/upload-artifact@v3
203+
uses: actions/upload-artifact@v4
204204
with:
205205
name: ipywidgets-updated-snapshots
206206
path: ui-tests/tests

.readthedocs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ python:
1010
path: ./python/ipywidgets
1111
conda:
1212
environment: docs/environment.yml
13+
sphinx:
14+
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)