Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 20, 2024
1 parent 498bf0d commit bcb5490
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,75 +15,58 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
channels: conda-forge,defaults
channel-priority: true
activate-environment: cramjam
environment-file: environment.yml
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Install packages (macOS)
run: brew install ninja
- name: Tests
shell: bash -el {0}
run: |
echo $CONDA_PREFIX
DYLD_FALLBACK_LIBRARY_PATH=$CONDA_PREFIX/lib cargo test --no-default-features --release
run: cargo test --no-default-features --release
- name: Build wheels - x86_64 - cramjam-cli
shell: bash -el {0}
uses: PyO3/maturin-action@v1
with:
target: x86_64
sccache: true
args: -i python --release --out dist --sdist --manifest-path cramjam-cli/Cargo.toml
- name: Build wheels - x86_64 - cramjam-python
shell: bash -el {0}
uses: PyO3/maturin-action@v1
with:
target: x86_64
sccache: true
args: -i python --release --out dist --sdist --manifest-path cramjam-python/Cargo.toml
- name: Install built wheels - x86_64
shell: bash -el {0}
run: |
pip install cramjam --pre --no-index --find-links dist --force-reinstall
pip install cramjam-cli --pre --no-index --find-links dist --force-reinstall
- name: Build wheels - universal2
shell: bash -el {0}
if: ${{ matrix.python-version >= '3.8' || contains(fromJson('["3.10", "3.11", "3.12"]'), matrix.python-version) }}
uses: PyO3/maturin-action@v1
with:
sccache: true
args: -i python --release --target universal2-apple-darwin --out dist --manifest-path cramjam-cli/Cargo.toml
- name: Build wheels - universal2
shell: bash -el {0}
if: ${{ matrix.python-version >= '3.8' || contains(fromJson('["3.10", "3.11", "3.12"]'), matrix.python-version) }}
uses: PyO3/maturin-action@v1
with:
sccache: true
args: -i python --release --target universal2-apple-darwin --out dist --manifest-path cramjam-python/Cargo.toml
- name: Install built wheels - universal2
shell: bash -el {0}
if: ${{ matrix.python-version >= '3.8' || contains(fromJson('["3.10", "3.11", "3.12"]'), matrix.python-version) }}
run: |
pip install cramjam --pre --no-index --find-links dist --force-reinstall
pip install cramjam-cli --pre --no-index --find-links dist --force-reinstall
- name: Python UnitTest - cramjam-cli
shell: bash -el {0}
run: |
pip install pytest numpy hypothesis
python -m pytest cramjam-cli -vs --ignore **/benchmarks
- name: Python UnitTest - cramjam-python
shell: bash -el {0}
run: |
python -m pytest cramjam-python -vs --ignore **/benchmarks
- name: Upload wheels
shell: bash -el {0}
uses: actions/upload-artifact@v3
with:
name: wheels
Expand Down

0 comments on commit bcb5490

Please sign in to comment.