Add mise setup for linux and macos #2
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: test | |
on: | |
push: # only publishes pushes to the main branch to TestPyPI | |
branches: # any integration branch but not tag | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
# env: | |
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
name: ${{ matrix.name || matrix.os }} | |
runs-on: ${{ matrix.os || 'ubuntu-24.04' }} | |
defaults: | |
run: | |
shell: ${{ matrix.shell || 'bash'}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners | |
- ubuntu-24.04 | |
- windows-2025 | |
- windows-2022 | |
- macos-15.0 | |
- macos-14.0 | |
include: | |
- os: windows-2022 | |
wsl: true | |
name: wsl (2022) | |
shell: wsl-bash {0} | |
- os: windows-2025 | |
wsl: true | |
name: wsl (2025) | |
shell: wsl-bash {0} | |
steps: | |
- if: matrix.wsl | |
uses: Vampire/setup-wsl@v4 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # needed by setuptools-scm | |
submodules: true | |
- name: Install mise | |
uses: jdx/mise-action@v2 | |
- name: Valdate mise availability | |
run: | | |
set -euo pipefail | |
mise --version | |
mise doctor | |
mise exec --command "python3 --version" | |
mise exec --command "gh --version" |