Skip to content

Commit 39cc2fe

Browse files
committed
Add Cargo.lock to git
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
1 parent df8abd1 commit 39cc2fe

3 files changed

Lines changed: 1351 additions & 8 deletions

File tree

.github/workflows/pynumaflow-lite.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- "packages/pynumaflow-lite/**"
1313
- ".github/workflows/pynumaflow-lite.yml"
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
permissions:
1620
contents: read
1721

@@ -60,7 +64,7 @@ jobs:
6064
run: uv run ruff check .
6165

6266
- name: Clippy
63-
run: cargo clippy --workspace --all-targets --all-features -- -D warnings -A clippy::module_inception
67+
run: cargo clippy --locked --workspace --all-targets --all-features -- -D warnings -A clippy::module_inception
6468

6569
test:
6670
name: Test ${{ matrix.platform.artifact }}
@@ -102,7 +106,7 @@ jobs:
102106
uv python install "${python_version}"
103107
export UV_PYTHON="${python_version}"
104108
uv sync --group dev --python "${python_version}"
105-
uv run --python "${python_version}" maturin develop
109+
uv run --python "${python_version}" maturin develop --locked
106110
107111
uv run --python "${python_version}" pytest -v
108112
@@ -121,7 +125,7 @@ jobs:
121125
export PYTHONHOME="$("${python_bin}" -c 'import sys; print(sys.base_prefix)')"
122126
python_libdir="$("${python_bin}" -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))')"
123127
export LD_LIBRARY_PATH="${python_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
124-
cargo test
128+
cargo test --locked
125129
unset PYO3_PYTHON PYTHONHOME LD_LIBRARY_PATH
126130
127131
unset UV_PYTHON
@@ -174,6 +178,7 @@ jobs:
174178
manylinux: ${{ matrix.platform.manylinux }}
175179
args: >-
176180
--release
181+
--locked
177182
--out dist
178183
-i ${{ matrix.platform.linux && format('python{0}', matrix.python-version) || 'python' }}
179184

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
debug/
44
target/
55

6-
7-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
8-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
9-
Cargo.lock
10-
116
# These are backup files generated by rustfmt
127
**/*.rs.bk
138

0 commit comments

Comments
 (0)