File tree 4 files changed +31
-19
lines changed
4 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Code quality
2
-
3
2
on :
4
- push :
5
- branches :
6
- - master
7
- tags :
8
- - v*
9
- pull_request :
3
+ workflow_call :
10
4
workflow_dispatch :
11
5
12
6
jobs :
13
- build :
7
+ code-quality :
14
8
runs-on : ubuntu-20.04
15
9
strategy :
16
10
fail-fast : false
Original file line number Diff line number Diff line change 1
1
name : Test installation
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
- tags :
8
- - v*
9
- pull_request :
4
+ workflow_call :
10
5
workflow_dispatch :
11
6
12
7
jobs :
13
- build :
8
+ test-installation :
14
9
runs-on : ubuntu-latest
15
10
16
11
steps :
27
22
run : pip install dist/*.whl
28
23
- name : Test import
29
24
run : python -c "import react_ipywidgets; import reacton"
25
+ - uses : actions/upload-artifact@v4
26
+ with :
27
+ name : reacton-build-${{ github.run_number }}
28
+ path : ./dist
Original file line number Diff line number Diff line change 6
6
- " *"
7
7
8
8
jobs :
9
- build :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : ./.github/workflows/unittest.yml
14
+
15
+ release :
16
+ needs : test
10
17
runs-on : ubuntu-latest
11
18
steps :
12
19
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
- tags :
8
- - v*
9
7
pull_request :
10
8
workflow_dispatch :
11
9
12
10
jobs :
13
11
build :
12
+ uses : ./.github/workflows/installation.yml
13
+
14
+ code-quality :
15
+ uses : ./.github/workflows/codequality.yaml
16
+
17
+ unit-test :
18
+ needs : [build, code-quality]
14
19
runs-on : ubuntu-20.04
15
20
strategy :
16
21
fail-fast : false
23
28
uses : actions/setup-python@v5
24
29
with :
25
30
python-version : ${{ matrix.python-version }}
31
+ - name : Install uv
32
+ uses : astral-sh/setup-uv@v3
33
+ - uses : actions/download-artifact@v4
34
+ with :
35
+ name : reacton-build-${{ github.run_number }}
36
+ path : ./dist
26
37
- name : Install
27
- run : pip install ".[dev]" "black<23"
38
+ run : |
39
+ uv pip install `echo dist/*.whl`[dev] "black<23" --system
28
40
- name : test
29
41
run : pytest --cov=reacton reacton
You can’t perform that action at this time.
0 commit comments