debugging windows #11
This file contains hidden or 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
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python package | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest] #[ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10"] #["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install SuiteSparse (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libsuitesparse-dev | |
| - name: Install SuiteSparse (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install suite-sparse | |
| - name: Set up Python ${{ matrix.python-version }} (non-Windows) | |
| if: runner.os != 'Windows' | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up conda with Python and SuiteSparse (Windows) | |
| if: runner.os == 'Windows' | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| auto-activate-base: false | |
| activate-environment: test-env | |
| channels: conda-forge | |
| - name: Install SuiteSparse via conda (Windows) | |
| if: runner.os == 'Windows' | |
| shell: bash -el {0} | |
| run: conda install -c conda-forge suitesparse --yes | |
| - name: Install dependencies (non-Windows) | |
| if: runner.os != 'Windows' | |
| run: python -m pip install .[test] | |
| - name: Install dependencies (Windows) | |
| if: runner.os == 'Windows' | |
| shell: bash -el {0} | |
| run: python -m pip install .[test] | |
| - name: Test with pytest (non-Windows) | |
| if: runner.os != 'Windows' | |
| run: pytest | |
| - name: Test with pytest (Windows) | |
| if: runner.os == 'Windows' | |
| shell: bash -el {0} | |
| run: pytest |