Skip to content

Commit ad79696

Browse files
committed
chore(ci): Store lockfile for use with sdist
1 parent 403fd78 commit ad79696

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/package.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
with:
4141
path: bsmschema
4242
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
43+
- name: Upload uv.lock
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: Lockfile
47+
path: |
48+
uv.lock
49+
pyproject.toml
4350
4451
test:
4552
runs-on: ${{ matrix.os }}
@@ -55,7 +62,6 @@ jobs:
5562

5663
steps:
5764
- uses: actions/checkout@v4
58-
if: matrix.source == 'repo'
5965
with:
6066
submodules: recursive
6167
fetch-depth: 0
@@ -65,11 +71,18 @@ jobs:
6571
with:
6672
name: Packages
6773
path: dist
74+
- name: Download lockfile
75+
if: matrix.source == 'sdist'
76+
uses: actions/download-artifact@v4
77+
with:
78+
name: Lockfile
6879
- name: Extract sdist
6980
if: matrix.source == 'sdist'
7081
run: |
71-
mkdir bsmschema
82+
ls -lR
83+
mkdir -p bsmschema
7284
tar --strip-components=1 -C bsmschema -xzf dist/*.tar.gz
85+
ls -lR
7386
- name: Set up uv
7487
uses: astral-sh/setup-uv@v6
7588
- name: Install tox

0 commit comments

Comments
 (0)