Remove try-cpython #997
Workflow file for this run
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: Build and Test | |
on: | |
pull_request: | |
push: | |
jobs: | |
build-and-test: | |
if: "! contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.allow-fail }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-12] | |
py: [311] # [311, 312] Python version injection currently missing from flake | |
allow-fail: [false] | |
# include: | |
# # Uncomment when upcoming Python broken | |
# - os: ubuntu-20.04 | |
# py: 311 | |
# allow-fail: true | |
# - os: macos-11 | |
# py: 311 | |
# allow-fail: true | |
steps: | |
- uses: actions/checkout@v3.5.2 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-22.11 | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: rustpetalo # The name of the Cachix cache | |
# If you chose signing key for write access | |
#signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_JACG_RUSTPETALO }}' | |
- name: Nix build | |
run: | | |
nix build -L | |
result/bin/mlem -h | |
result/bin/foms -h | |
result/bin/imageprimaries -h | |
result/bin/joinlorhdf -h | |
result/bin/make_sensitivity_image -h | |
result/bin/makelor -h | |
result/bin/vislor -h | |
result/bin/viewraw.py -h | |
# result/bin/foms.py -h TODO | |
- name: Nix shell | |
run: | | |
nix shell -c mlem -h | |
nix shell -c foms -h | |
nix shell -c imageprimaries -h | |
nix shell -c joinlorhdf -h | |
nix shell -c make_sensitivity_image -h | |
nix shell -c makelor -h | |
nix shell -c vislor -h | |
nix shell -c viewraw.py -h | |
# nix shell -c foms.py -h TODO | |
- name: Test Rust in `nix develop` | |
run: nix develop -c just test-rust --color=always | |
- name: Test Pure Python in `nix develop` | |
run: nix develop -c just test-python-pure --color=yes | |
- name: Compile PyO3 in `nix develop` | |
run: nix develop -c just python-build-bindings | |
if: runner.os != 'macOS' | |
- name: Test PyO3 in `nix develop` | |
run: nix develop -c just test-python-bindings --color=yes | |
if: runner.os != 'macOS' |