Skip to content

Commit

Permalink
Add CI workflow for testing compatibility mode on macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Apr 19, 2024
1 parent b398f67 commit 4c7acd3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,47 @@ jobs:
run: |
python -m pip install -r docs/requirements.txt
mkdocs build
compatibility_mode:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
target: x86_64-apple-darwin
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1
with:
key: ${{ matrix.os }}

- name: Build HyperQueue
run: cargo build --no-default-features
- name: Run HyperQueue
run: cargo run --no-default-features -- --version

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r tests/requirements.txt
- name: Install coreutils
run: brew install coreutils

- name: Build Python binding
run: |
maturin build --manifest-path crates/pyhq/Cargo.toml --out wheels
WHEEL=`realpath wheels/*.whl`
python -m pip install $WHEEL[all]

0 comments on commit 4c7acd3

Please sign in to comment.