Test checks on os + python version #153
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"] | |
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') }}" == false ]; then | |
echo "install toulbar2" | |
pip install "${wheelfile}[toulbar]" | |
python -c "import pytoulbar2" | |
fi |