Update MRML to 3.0.0 #80
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: CI | |
on: | |
pull_request: | |
release: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests | |
run: | | |
set -euo pipefail | |
python3 -m venv env | |
source env/bin/activate | |
pip install -r requirements.txt | |
maturin develop | |
python -m unittest | |
linux: | |
needs: [ tests ] | |
strategy: | |
fail-fast: true | |
matrix: | |
platform: | |
- target: x86_64 | |
manylinux: auto | |
- target: aarch64 | |
manylinux: auto | |
- target: x86_64-unknown-linux-musl | |
manylinux: musllinux_1_2 | |
container: quay.io/pypa/musllinux_1_2_x86_64 | |
- target: aarch64-unknown-linux-musl | |
manylinux: musllinux_1_2 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
rust-toolchain: stable | |
manylinux: ${{ matrix.platform.manylinux }} | |
target: ${{ matrix.platform.target }} | |
container: ${{ matrix.platform.container }} | |
args: --release -o dist --find-interpreter | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
windows: | |
needs: [ tests ] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
rust-toolchain: stable | |
args: --release -o dist --find-interpreter | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
macos: | |
needs: [ tests ] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
rust-toolchain: stable | |
args: --release -o dist --universal2 --find-interpreter | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: "startsWith(github.ref, 'refs/tags/')" | |
needs: [ macos, windows, linux ] | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: wheels | |
- name: Publish to PyPI | |
uses: PyO3/maturin-action@v1 | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
command: upload | |
args: --skip-existing * |