Skip to content

Commit a35bada

Browse files
committed
upload sdist actifacts
1 parent e703c68 commit a35bada

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,32 @@ on:
1717
- pypi
1818

1919
jobs:
20-
test:
21-
# We want to run on external PRs, but not on our own internal PRs as they'll be run
22-
# by the push to the branch. Without this if check, checks are duplicated since
23-
# internal PRs match both the push and pull_request events.
20+
build:
2421
if:
2522
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
2623
github.repository
2724

25+
name: Build source distribution
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v6
29+
- uses: actions/setup-python@v6
30+
with:
31+
python-version: "3.14"
32+
33+
- name: Build sdist
34+
run: |
35+
pip install nox
36+
nox -s build
37+
38+
- uses: actions/upload-artifact@v6
39+
with:
40+
name: build-dist
41+
path: ${{ github.workspace }}/dist/
42+
if-no-files-found: error
43+
44+
test:
45+
needs: [build]
2846
runs-on: ${{ matrix.os }}
2947

3048
defaults:

0 commit comments

Comments
 (0)