Skip to content

Commit aa541da

Browse files
authored
Fixing CI (#64)
* Fixing CI * Linter * Update prep-release publish-release * Update check-release * Update snapshot * Update on failure * Meh * Update snapshts
1 parent 2efc817 commit aa541da

File tree

12 files changed

+37
-25
lines changed

12 files changed

+37
-25
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Base Setup
1818
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
@@ -48,7 +48,7 @@ jobs:
4848
pip uninstall -y "jupyterlab-unfold" jupyterlab
4949
5050
- name: Upload extension packages
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
with:
5353
name: extension-artifacts
5454
path: dist/jupyterlab_unfold*
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
python-version: '3.9'
6666
architecture: 'x64'
67-
- uses: actions/download-artifact@v3
67+
- uses: actions/download-artifact@v4
6868
with:
6969
name: extension-artifacts
7070
- name: Install and Test
@@ -90,13 +90,13 @@ jobs:
9090

9191
steps:
9292
- name: Checkout
93-
uses: actions/checkout@v3
93+
uses: actions/checkout@v4
9494

9595
- name: Base Setup
9696
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
9797

9898
- name: Download extension package
99-
uses: actions/download-artifact@v3
99+
uses: actions/download-artifact@v4
100100
with:
101101
name: extension-artifacts
102102

@@ -112,7 +112,7 @@ jobs:
112112
run: jlpm install
113113

114114
- name: Set up browser cache
115-
uses: actions/cache@v3
115+
uses: actions/cache@v4
116116
with:
117117
path: |
118118
${{ github.workspace }}/pw-browsers
@@ -127,21 +127,25 @@ jobs:
127127
run: |
128128
jlpm playwright test
129129
130+
- name: Update Playwright Test snapshots
131+
if: failure()
132+
working-directory: ui-tests
133+
run: |
134+
jlpm run test:update
135+
130136
- name: Upload Playwright Test report
131137
if: always()
132-
uses: actions/upload-artifact@v3
138+
uses: actions/upload-artifact@v4
133139
with:
134140
name: jupyterlab-unfold-playwright-tests
135141
path: |
136-
ui-tests/test-results
137-
ui-tests/playwright-report
138-
ui-tests/tests/*-snapshots
142+
ui-tests
139143
140144
check_links:
141145
name: Check Links
142146
runs-on: ubuntu-latest
143147
timeout-minutes: 15
144148
steps:
145-
- uses: actions/checkout@v3
149+
- uses: actions/checkout@v4
146150
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
147151
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1

.github/workflows/check-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Base Setup
1515
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1616
- name: Check Release
@@ -20,7 +20,7 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Upload Distributions
23-
uses: actions/upload-artifact@v3
23+
uses: actions/upload-artifact@v4
2424
with:
25-
name: jupyterlab-unfold-releaser-dist-${{ github.run_number }}
25+
name: jupyterlite_xeus-releaser-dist-${{ github.run_number }}
2626
path: .jupyter_releaser_checkout/dist

.github/workflows/prep-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
post_version_spec:
1313
description: "Post Version Specifier"
1414
required: false
15+
# silent:
16+
# description: "Set a placeholder in the changelog and don't publish the release."
17+
# required: false
18+
# type: boolean
1519
since:
1620
description: "Use PRs with activity since this date or git reference"
1721
required: false
@@ -22,15 +26,18 @@ on:
2226
jobs:
2327
prep_release:
2428
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
2531
steps:
2632
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2733

2834
- name: Prep Release
2935
id: prep-release
3036
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
3137
with:
32-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
38+
token: ${{ secrets.GITHUB_TOKEN }}
3339
version_spec: ${{ github.event.inputs.version_spec }}
40+
# silent: ${{ github.event.inputs.silent }}
3441
post_version_spec: ${{ github.event.inputs.post_version_spec }}
3542
branch: ${{ github.event.inputs.branch }}
3643
since: ${{ github.event.inputs.since }}

.github/workflows/publish-release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,34 @@ on:
1515
jobs:
1616
publish_release:
1717
runs-on: ubuntu-latest
18+
environment: release
1819
permissions:
19-
# This is useful if you want to use PyPI trusted publisher
20-
# and NPM provenance
2120
id-token: write
2221
steps:
2322
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2423

24+
- uses: actions/create-github-app-token@v1
25+
id: app-token
26+
with:
27+
app-id: ${{ vars.APP_ID }}
28+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
29+
2530
- name: Populate Release
2631
id: populate-release
2732
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2833
with:
29-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
34+
token: ${{ steps.app-token.outputs.token }}
3035
branch: ${{ github.event.inputs.branch }}
3136
release_url: ${{ github.event.inputs.release_url }}
3237
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}
3338

3439
- name: Finalize Release
3540
id: finalize-release
3641
env:
37-
# The following are needed if you use legacy PyPI set up
38-
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
39-
# PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
40-
# TWINE_USERNAME: __token__
4142
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
43+
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
4344
with:
44-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
45+
token: ${{ steps.app-token.outputs.token }}
4546
release_url: ${{ steps.populate-release.outputs.release_url }}
4647

4748
- name: "** Next Step **"

src/unfold.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class FilterFileTreeBrowserModel extends FilterFileBrowserModel {
452452
pathChanged.emit({
453453
name: 'path',
454454
oldValue,
455-
newValue: this._path,
455+
newValue: this._path
456456
});
457457
}
458458
}
-96 Bytes
Loading
-227 Bytes
Loading
-211 Bytes
Loading
-260 Bytes
Loading
-524 Bytes
Loading

0 commit comments

Comments
 (0)