File tree Expand file tree Collapse file tree 4 files changed +32
-21
lines changed
Expand file tree Collapse file tree 4 files changed +32
-21
lines changed Original file line number Diff line number Diff line change 11name : Code quality
2-
32on :
4- push :
5- branches :
6- - master
7- tags :
8- - v*
9- pull_request :
3+ workflow_call :
104 workflow_dispatch :
115
126jobs :
13- build :
7+ code-quality :
148 runs-on : ubuntu-20.04
159 strategy :
1610 fail-fast : false
Original file line number Diff line number Diff line change 11name : Test installation
22
33on :
4- push :
5- branches :
6- - master
7- tags :
8- - v*
9- pull_request :
4+ workflow_call :
105 workflow_dispatch :
116
127jobs :
13- build :
8+ test-installation :
149 runs-on : ubuntu-latest
1510
1611 steps :
2722 run : pip install dist/*.whl
2823 - name : Test import
2924 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 66 - " *"
77
88jobs :
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
1017 runs-on : ubuntu-latest
1118 steps :
1219 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- tags :
8- - v*
97 pull_request :
108 workflow_dispatch :
119
1210jobs :
1311 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]
1419 runs-on : ubuntu-20.04
1520 strategy :
1621 fail-fast : false
@@ -19,11 +24,17 @@ jobs:
1924
2025 steps :
2126 - uses : actions/checkout@v4
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v3
2229 - 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
2433 with :
25- python-version : ${{ matrix.python-version }}
34+ name : reacton-build-${{ github.run_number }}
35+ path : ./dist
2636 - name : Install
27- run : pip install ".[dev]" "black<23"
37+ run : |
38+ uv pip install `echo dist/*.whl`[dev] "black<23"
2839 - name : test
2940 run : pytest --cov=reacton reacton
You can’t perform that action at this time.
0 commit comments