Skip to content
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

use stable rust #39

Merged
merged 11 commits into from
Aug 8, 2024
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
22 changes: 10 additions & 12 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,30 @@ jobs:
runs-on: ${{matrix.platform}}
strategy:
matrix:
platform:
- ubuntu-latest
- windows-latest
- macos-latest
target: [x86_64]
include:
- {platform: ubuntu-latest, rust: nightly}
- {platform: ubuntu-latest, rust: stable}
- {platform: windows-latest, rust: nightly}
- {platform: macos-latest, rust: nightly}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.target }}
rust-toolchain: '${{matrix.rust}}'
manylinux: auto
args: --release --sdist --out dist
- name: Install built wheel
if: matrix.target == 'x86_64'
# if: matrix.target == 'x86_64'
run: |
pip install numpy xarray netCDF4
pip install hidefix --no-index --find-links dist --force-reinstall --no-deps
python -c "import hidefix"
- name: Run tests
if: matrix.target == 'x86_64'
# if: matrix.target == 'x86_64'
run: |
pip install pytest pytest-benchmark dask
pytest -v --log-cli-level=debug -s
Expand All @@ -61,7 +59,7 @@ jobs:
name: wheels
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
matrix:
include:
- {platform: ubuntu-latest, rust: nightly}
- {platform: ubuntu-latest, rust: stable}
- {platform: windows-latest, rust: nightly}
- {platform: macos-latest, rust: nightly}

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -55,11 +57,11 @@ jobs:
with:
toolchain: '${{matrix.rust}}'
- name: Build and test all crates
run: cargo test -vv --workspace
run: cargo test -vv --workspace ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
- name: Build and test all docs
run: cargo test -vv --workspace --doc
run: cargo test -vv --workspace --doc ${{matrix.rust == 'nightly' && '--features unstable' || '' }}
- name: Build examples
run: cargo b --examples --verbose
run: cargo b --examples --verbose ${{matrix.rust == 'nightly' && '--features unstable' || '' }}

bench:
name: Benchmark
Expand All @@ -68,7 +70,7 @@ jobs:
fail-fast: false
matrix:
include:
- {ubuntu: 20.04, rust: nightly}
- {ubuntu: latest, rust: nightly}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -77,7 +79,7 @@ jobs:
with:
toolchain: '${{matrix.rust}}'
- name: Build and bench
run: cargo bench -vv --workspace
run: cargo bench -vv --workspace --features unstable

audit:
name: Audit
Expand Down
Loading
Loading