Update CI workflows for Python core project π #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: π§ͺ Python-core testing | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- python-core/** | |
- .github/workflows/test-python-core.yml | |
defaults: | |
run: | |
working-directory: python-core | |
jobs: | |
test: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: setup openmp and autoconf | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
brew install libomp autoconf | |
echo "C_INCLUDE_PATH=$(brew --prefix)/opt/libomp/include" >> $GITHUB_ENV | |
echo "LIBRARY_PATH=$(brew --prefix)/opt/libomp/lib" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
uv sync --all-extras --dev | |
uv run pytest |