Skip to content

chore(asm): rename and add finished job for multiple os tests #14942

chore(asm): rename and add finished job for multiple os tests

chore(asm): rename and add finished job for multiple os tests #14942

Workflow file for this run

name: Multiple OS tests
on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
workflow_dispatch: {}
jobs:
multiple_os_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Keep this in sync with hatch.toml
python-version: ["3.8", "3.10", "3.13"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Include all history and tags
with:
persist-credentials: false
fetch-depth: 0
- uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
- name: Install latest stable toolchain and rustfmt
run: rustup update stable && rustup default stable && rustup component add rustfmt clippy
- name: Install hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc # install
with:
version: "1.12.0"
- name: Install coreutils for MacOS to get sha256sum
if: matrix.os == 'macos-latest'
run: brew install coreutils
- name: Install dependencies
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
run: sudo apt-get install -y python3.13
- name: Run tests
run: hatch run +py=${{ matrix.python-version }} multiple_os_tests:test
finished:
runs-on: ubuntu-latest
needs: multiple_os_tests
steps:
- name: True when successful
if: needs.multiple_os_tests.result == 'success'
run: exit 0
- name: Fails if anything else failed
if: needs.multiple_os_tests.result != 'success'
run: exit 1