Added dynamic = [ 'version' ] to pyproject.toml #367
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cross-platform tests | |
on: | |
push: | |
tags-ignore: | |
- '**' | |
branches: | |
- '**' | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
test: | |
name: Test ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# see https://github.com/actions/runner-images?tab=readme-ov-file#available-images for runner types | |
os: [ubuntu-latest, macos-13, macos-14, macos-15] # macos-13 is x86_64, macos-14 & 15 are Arm64 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: (macos) install automake and autoconf | |
if: ${{ startsWith(matrix.os, 'macOS') }} | |
run: | | |
brew install automake autoconf | |
- name: Install stable minimal toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run tests on latest stable rust | |
run: cargo test --features cfitsio-static,examples | |
- name: Minimum-specified Rust version works | |
run: | | |
MIN_RUST=$(grep -m1 "rust-version" Cargo.toml | sed 's|.*\"\(.*\)\"|\1|') | |
~/.cargo/bin/rustup install $MIN_RUST --profile minimal | |
cargo +${MIN_RUST} test --features cfitsio-static,examples |