File tree 4 files changed +32
-21
lines changed
4 files changed +32
-21
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
@@ -19,11 +24,17 @@ jobs:
19
24
20
25
steps :
21
26
- uses : actions/checkout@v4
27
+ - name : Install uv
28
+ uses : astral-sh/setup-uv@v3
22
29
- name : Set up Python ${{ matrix.python-version }}
23
- uses : actions/setup-python@v5
30
+ run : |
31
+ uv python install ${{ matrix.python-version }}
32
+ - uses : actions/download-artifact@v4
24
33
with :
25
- python-version : ${{ matrix.python-version }}
34
+ name : reacton-build-${{ github.run_number }}
35
+ path : ./dist
26
36
- name : Install
27
- run : pip install ".[dev]" "black<23"
37
+ run : |
38
+ uv pip install `echo dist/*.whl`[dev] "black<23" --system
28
39
- name : test
29
40
run : pytest --cov=reacton reacton
You can’t perform that action at this time.
0 commit comments