Skip to content

docs: add pixi #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2025
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
9 changes: 8 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -39,9 +43,10 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.12"
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install dependencies
run: make install
- name: Lint
Expand All @@ -68,6 +73,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install components
run: make install
- name: Test unit
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
test:
name: "stressful bad requests test"
Expand All @@ -44,9 +48,10 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.12"
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install dependencies
run: make install_py
- name: Test
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -34,9 +38,10 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.12"
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install dependencies
run: |
make install_py
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Before contributing to this repository, please first discuss the change you wish

## Pull Request Process

1. After you have forked this repository, you could use `make install` for *the first time* to install the local development dependencies; afterward, you may use `make dev` to build the library when you have made any code changes.
1. After you have forked this repository, you could use `make install` for *the first time* to install the local development dependencies.
2. Before committing your changes, you can use `make format && make lint` to ensure the codes follow our style standards.
3. Please add corresponding tests to your change if that's related to new feature or API, and ensure `make test` can pass.
4. Submit your pull request.
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ RUST_BACKTRACE=1
install_py:
uv venv
uv sync --all-groups --all-extras
pre-commit install

install_rs:
rustup toolchain install nightly --no-self-update
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Mosec requires Python 3.7 or above. Install the latest [PyPI package](https://py
pip install -U mosec
# or install with conda
conda install conda-forge::mosec
# or install with pixi
pixi add mosec
```

To build from the source code, install [Rust](https://www.rust-lang.org/) and run the following command:
Expand Down
Loading