Skip to content

Commit 05411b7

Browse files
committed
Build package with nox in workflow
1 parent 6c8f614 commit 05411b7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build_package.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Build Package
22

33
on:
44
pull_request:
@@ -25,7 +25,7 @@ jobs:
2525
python-version: "3.10"
2626

2727
- name: Install build dependencies
28-
run: pip install build
28+
run: pip install nox
2929

3030
- name: Set BUILD_RAGNA_BASE environment variable
3131
run: |
@@ -37,8 +37,12 @@ jobs:
3737
3838
- name: Build distribution
3939
run: |
40-
echo "Building package: ${{ matrix.package }}"
41-
python -m build
40+
if [ "${{ matrix.package }}" == "ragna-base" ]; then
41+
echo "Building package with nox -s build-base"
42+
nox -s build-base
43+
else
44+
echo "Building package with nox -s build"
45+
nox -s build
4246
4347
- name: Verify package
4448
run: |

0 commit comments

Comments
 (0)