Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 4fd58de

Browse files
authored
Merge pull request #295 from jtpio/base-setup-ci
Use `maintainer-tools` base setup action
2 parents 457e292 + 154463c commit 4fd58de

File tree

4 files changed

+27
-65
lines changed

4 files changed

+27
-65
lines changed

.github/actions/build-dist/action.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,13 @@ description: "Build RetroLab fron source"
33
runs:
44
using: "composite"
55
steps:
6-
- name: Install node
7-
uses: actions/setup-node@v2
8-
with:
9-
node-version: '14.x'
10-
11-
- name: Install Python
12-
uses: actions/setup-python@v2
13-
with:
14-
python-version: '3.9'
15-
architecture: 'x64'
6+
- name: Base Setup
7+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
168

179
- name: Install dependencies
1810
shell: bash
1911
run: |
20-
python -m pip install --upgrade pip wheel
21-
python -m pip install setuptools jupyter_packaging~=0.10 "jupyterlab>=3,<4" build
12+
python -m pip install --upgrade jupyter_packaging~=0.10 "jupyterlab>=3,<4" build
2213
2314
- name: Build pypi distributions
2415
shell: bash

.github/workflows/build.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,27 @@ jobs:
3434
steps:
3535
- name: Checkout
3636
uses: actions/checkout@v2
37-
- name: Install node
38-
uses: actions/setup-node@v2
39-
with:
40-
node-version: '14.x'
41-
- name: Install Python
42-
uses: actions/setup-python@v2
43-
with:
44-
python-version: '3.9'
45-
architecture: 'x64'
37+
38+
- name: Base Setup
39+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
40+
4641
- name: Install dependencies
4742
run: |
48-
python -m pip install --upgrade pip wheel
49-
python -m pip install jupyter_packaging~=0.10
43+
python -m pip install -U jupyter_packaging~=0.10
44+
5045
- name: Install the package
5146
run: |
5247
python -m pip install .
5348
jupyter labextension list 2>&1 | grep -ie "@retrolab/lab-extension.*enabled.*ok" -
5449
jupyter server extension list 2>&1 | grep -ie "retrolab.*enabled" -
5550
python -m jupyterlab.browser_check
51+
5652
- name: Lint
5753
run: |
5854
jlpm
5955
jlpm run eslint:check
6056
jlpm run prettier:check
57+
6158
- name: Test
6259
run: |
6360
jlpm run build:test

.github/workflows/buildutils.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,21 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2
19-
- name: Install node
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: '14.x'
23-
- name: Install Python
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: '3.9'
27-
architecture: 'x64'
19+
20+
- name: Base Setup
21+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
22+
2823
- name: Install dependencies
2924
run: |
30-
python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip
25+
python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10
3126
jlpm
3227
jlpm run build
28+
3329
- name: Configure git identity to commit
3430
run: |
3531
git config --global user.email "[email protected]"
3632
git config --global user.name "Your Name"
33+
3734
- name: Reset version
3835
run: |
3936
# TODO: improve this with a mock package?
@@ -42,12 +39,15 @@ jobs:
4239
sed -i -E "s/current_version = .*/current_version = 9, 8, 7, 'final', 0/" .bumpversion.cfg
4340
jlpm run lerna version 9.8.7 --no-push --force-publish --no-git-tag-version --yes
4441
git commit -am "Release 9.8.7"
42+
4543
- name: Patch Release
4644
run: |
4745
jlpm release:patch --force
46+
4847
- name: Minor Release
4948
run: |
5049
jlpm release:bump minor --force
50+
5151
- name: Release Cycle
5252
run: |
5353
# beta
@@ -56,6 +56,7 @@ jobs:
5656
jlpm release:bump release --force
5757
# final
5858
jlpm release:bump release --force
59+
5960
- name: Major Release
6061
run: |
6162
jlpm release:bump major --force
@@ -65,11 +66,13 @@ jobs:
6566
steps:
6667
- name: Checkout
6768
uses: actions/checkout@v2
69+
6870
- name: Install Python
6971
uses: actions/setup-python@v2
7072
with:
7173
python-version: '3.9'
7274
architecture: 'x64'
75+
7376
- name: Install dependencies
7477
run: |
7578
python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip

.github/workflows/check-release.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,12 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v2
2020

21-
- name: Install Python
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: 3.9
25-
architecture: "x64"
26-
27-
- name: Install node
28-
uses: actions/setup-node@v2
29-
with:
30-
node-version: '14.x'
31-
32-
- name: Get pip cache dir
33-
id: pip-cache
34-
run: |
35-
echo "::set-output name=dir::$(pip cache dir)"
36-
37-
- name: Cache pip
38-
uses: actions/cache@v1
39-
with:
40-
path: ${{ steps.pip-cache.outputs.dir }}
41-
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
42-
restore-keys: |
43-
${{ runner.os }}-pip-
44-
45-
- name: Cache checked links
46-
uses: actions/cache@v2
47-
with:
48-
path: ~/.cache/pytest-link-check
49-
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
50-
restore-keys: |
51-
${{ runner.os }}-linkcheck-
21+
- name: Base Setup
22+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
5223

5324
- name: Upgrade packaging dependencies
5425
run: |
55-
pip install --upgrade pip setuptools wheel jupyter-packaging~=0.10 --user
26+
pip install --upgrade jupyter-packaging~=0.10 --user
5627
5728
- name: Install Dependencies
5829
run: |

0 commit comments

Comments
 (0)