Skip to content

Commit 8113d93

Browse files
authored
Merge pull request #27 from SUSTech-data/abao/ci
ci: add document workflow
2 parents 42f17a6 + d9b0dcc commit 8113d93

File tree

13 files changed

+3206
-34
lines changed

13 files changed

+3206
-34
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build
22
on:
33
push:
4-
branches: main
4+
branches: master
55
pull_request:
66
branches: '*'
77
concurrency:

.github/workflows/check-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Check Release
22
on:
33
push:
4-
branches: [main]
4+
branches: [master]
55
pull_request:
66
branches: ['*']
7-
87
concurrency:
98
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
109
cancel-in-progress: true
11-
1210
jobs:
1311
check_release:
1412
runs-on: ubuntu-latest
@@ -28,7 +26,6 @@ jobs:
2826
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
2927
with:
3028
token: ${{ secrets.GITHUB_TOKEN }}
31-
3229
- name: Upload Distributions
3330
uses: actions/upload-artifact@v4
3431
with:
File renamed without changes.

.github/workflows/update-docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Update docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
jobs:
8+
update-docs:
9+
name: Update README and doc
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Make document
15+
run: |
16+
make document
17+
- name: Push changes
18+
uses: stefanzweifel/git-auto-commit-action@v4
19+
with:
20+
commit_message: "auto-generate document"
21+
commit_user_name: "github-actions[bot]"
22+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
23+
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env sh
22

33
make test
4-
make document
54
pnpm lint-staged
65
pnpm run test

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Contributing
22

3-
## Install Dependencies
3+
## Dependencies
4+
5+
* Node.js
6+
* pnpm
7+
* python
48

5-
```shell
6-
pip install hatch hatch-nodejs-version pytest pytest_jupyter ruff
7-
```
89

910
## JupyterLab Extension
1011

@@ -16,6 +17,7 @@ Note: You will need `NodeJS` to build the extension package. Recommend use `pnpm
1617
# Clone the repo to your local environment
1718
# Change directory to the current project directory
1819
# Install package in development mode
20+
# This step will some additional tools, e.g. ruff
1921
pip install -e ".[dev]"
2022
# Link your development version of the extension with JupyterLab
2123
jupyter labextension develop . --overwrite

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hatch version <new-version>
2424
Make sure to clean up all the development files before building the package:
2525

2626
```bash
27-
jlpm clean:all
27+
pnpm clean:all
2828
```
2929

3030
You could also clean up the local git repository:

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default antfu({
66
quotes: 'single',
77
},
88
toml: false,
9+
yaml: false,
10+
markdown: false,
911
typescript: true,
1012
}, {
1113
rules: {

pnpm-lock.yaml

Lines changed: 24 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dynamic = ["version", "description", "authors", "urls", "keywords"]
3030
dev = [
3131
# build
3232
"hatch",
33+
"hatch-nodejs-version",
3334
# formatter
3435
"ruff",
3536
# test

requirements.txt

Whitespace-only changes.

ui-tests/playwright.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import process from 'node:process';
22
/**
33
* Configuration for Playwright using default from @jupyterlab/galata
44
*/
5-
import baseConfig from '@jupyterlab/galata/lib/playwright-config';
5+
import baseConfig from '@jupyterlab/galata/lib/playwright-config.js';
66

77
export default {
88
...baseConfig,
99
webServer: {
10-
command: 'jlpm start',
10+
command: 'pnpm start',
1111
url: 'http://localhost:8888/lab',
1212
timeout: 120 * 1000,
1313
reuseExistingServer: !process.env.CI,

0 commit comments

Comments
 (0)