Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
manylinux: auto
args: >-
--release
--locked
--out dist
--interpreter ${{ matrix.platform.interpreter }}
--compatibility pypi
Expand Down Expand Up @@ -136,6 +137,7 @@ jobs:
manylinux: musllinux_1_2
args: >-
--release
--locked
--out dist
--interpreter ${{ matrix.platform.interpreter }}
--compatibility pypi
Expand Down Expand Up @@ -185,6 +187,7 @@ jobs:
sccache: ${{ github.ref_type != 'tag' }}
args: >-
--release
--locked
--out dist
--interpreter ${{ matrix.platform.interpreter }}
--compatibility pypi
Expand Down Expand Up @@ -217,6 +220,7 @@ jobs:
sccache: ${{ github.ref_type != 'tag' }}
args: >-
--release
--locked
--out dist
--interpreter ${{ matrix.platform.interpreter }}
--compatibility pypi
Expand Down
32 changes: 9 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,14 @@ jobs:
with:
enable-cache: false

- name: "Create and activate .venv"
run: |
uv venv .venv --python ${{ matrix.python-version }}
echo ".venv/bin" >> "$GITHUB_PATH"
echo "PYO3_PYTHON=.venv/bin/python3" >> "$GITHUB_ENV"

- name: "Install dependencies"
run: uv pip install --group ci
run: uv sync --locked --python ${{ matrix.python-version }} --no-default-groups --group ci --no-install-project

- name: "Run maturin"
run: maturin develop
run: uv run --no-sync maturin develop --locked

- name: "Run pytest"
run: pytest -v
run: uv run --no-sync pytest -v

test-os:
name: ${{ matrix.os }}
Expand All @@ -98,24 +92,16 @@ jobs:
with:
enable-cache: false

- name: "Create and activate .venv"
- name: "Use copy link mode on Windows"
if: matrix.os == 'windows'
shell: bash
run: |
uv venv .venv --python 3.13
if [[ "${{ matrix.os }}" == "windows" ]]; then
echo ".venv/Scripts" >> "$GITHUB_PATH"
echo "PYO3_PYTHON=.venv/Scripts/python" >> "$GITHUB_ENV"
echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"
else
echo ".venv/bin" >> "$GITHUB_PATH"
echo "PYO3_PYTHON=.venv/bin/python3" >> "$GITHUB_ENV"
fi
run: echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"

- name: "Install dependencies"
run: uv pip install --group ci
run: uv sync --locked --python 3.13 --no-default-groups --group ci --no-install-project

- name: "Run maturin"
run: maturin develop
run: uv run --no-sync maturin develop --locked

- name: "Run pytest"
run: pytest -v
run: uv run --no-sync pytest -v
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/target
Cargo.lock

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
Loading
Loading