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
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ jobs:
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
with:
command: build
args: --out dist -i python3.10
args: --out dist -i python3.10 --release
manylinux: auto
sccache: true
- name: Check package
run: pixi run -e build check-wheel
- name: Upload package
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,23 @@ jobs:
uses: prefix-dev/setup-pixi@194d461b21b6c5717c722ffc597fa91ed2ff29fa # v0.9.1
with:
environments: default lint
- name: Install Rust
run: rustup show
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
- name: Install repository
run: pixi run -e default postinstall
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure

unit-tests:
name: Unit Tests (${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }}) - ${{ matrix.environment }}
name: Unit Tests (${{ contains(matrix.os, 'ubuntu') && 'Linux' || (contains(matrix.os, 'windows') && 'Windows' || 'macOS') }}) - ${{ matrix.environment }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
environment: [py310, py311, py312, py313, py314]
with_optionals: [false]
include:
Expand All @@ -49,6 +53,9 @@ jobs:
- os: windows-latest
environment: py314-optionals
with_optionals: true
- os: macos-latest
environment: py314-optionals
with_optionals: true
steps:
- name: Checkout branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -58,6 +65,10 @@ jobs:
environments: ${{ matrix.environment }}
# FIXME: Remove when `s3_server` fixture does not start a process anymore
post-cleanup: ${{ matrix.os != 'windows-latest' }}
- name: Install Rust
run: rustup show
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
- name: Install repository
run: pixi run -e ${{ matrix.environment }} postinstall
- name: Run pytest
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ repos:
language: system
types: [python]
require_serial: true
# cargo-fmt
- id: cargo-fmt
name: cargo-fmt
entry: cargo fmt
language: system
types: [rust]
require_serial: true
pass_filenames: false
# cargo-clippy
- id: cargo-clippy
name: cargo-clippy
entry: cargo clippy --all-targets
language: system
types: [rust]
require_serial: true
pass_filenames: false
# prettier
- id: prettier
name: prettier
Expand Down
Loading
Loading