Skip to content

Update actions/checkout digest to 692973e #13

Update actions/checkout digest to 692973e

Update actions/checkout digest to 692973e #13

---
# This workflow will install Python dependencies and run tests
# across operating systems, select versions of Python, and user + dev environments
# For more info see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python 🐍 CI/CD tests
on:
push:
branches: [main, develop]
paths-ignore: # prevents workflow execution when only these types of files are modified
- "**.md" # wildcards prevent file in any repo dir from trigering workflow
- "**.bib"
- "**.ya?ml" # captures both .yml and .yaml
- "LICENSE"
- ".gitignore"
pull_request:
branches: [main, develop]
types: [opened, reopened] # excludes syncronize to avoid redundant trigger from commits on PRs
paths-ignore:
- "**.md"
- "**.bib"
- "**.ya?ml"
- "LICENSE"
- ".gitignore"
workflow_dispatch: # also allow manual trigger, for testing purposes
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
# os: [ubuntu-latest, windows-latest, macos-latest]
py-version: ["3.11"]
steps:

Check failure on line 39 in .github/workflows/python-test-umfpack-macos.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-test-umfpack-macos.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
# general Python setup
- name: Set up Python ${{ matrix.py-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-version }}
- name: Install suitesparse dependencies
run: |
brew install swig suite-sparse
- name: Update pip & install testing pkgs
run: |
python -VV
python -m pip install --upgrade pip setuptools wheel
# install testing
- name: Install package and test deps
run: |
pip install .[testing] # install the package and the testing deps
- name: Install scikit-umfpack
run: |
echo "SuiteSparse version:"
ls /opt/homebrew/Cellar/suite-sparse/
pip install scikit-umfpack -Csetup-args=--native-file=$PWD/custom-config.ini
- name: Test with pytest
run: |
pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4