Test checks on os + python version #151
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 workflow-testing | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
get-archi: | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.12"] | ||
os: ["macos-latest", "macos-12", "windows-latest", "ubuntu-latest"] | ||
exclude: | ||
- os: macos-12 | ||
arch: arm64 | ||
Check failure on line 25 in .github/workflows/build.yml GitHub Actions / Build workflow-testingInvalid workflow file
|
||
- os: macos-latest | ||
arch: x86_64 | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- run: | | ||
echo ${{ matrix }} | ||
uname -a | ||
if [ "${{ startsWith(matrix.os, 'windows') || (startsWith(matrix.os, 'macos') && matrix.python-version == '3.12') }}" == true ]; then | ||
echo "install toulbar2" | ||
pip install "${wheelfile}[toulbar]" | ||
python -c "import pytoulbar2" | ||
fi |