Fix using .A
instead of .toarray()
#449
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: CI | |
on: | |
schedule: | |
- cron: 00 00 * * 1 # Run every Monday at 00:00 | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ['3.8', '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest] | |
slepc: ['noslepc'] | |
include: | |
- os: ubuntu-latest | |
python: '3.9' | |
slepc: 'slepc' | |
- os: macos-latest | |
python: '3.10' | |
slepc: 'slepc' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
auto-activate-base: true | |
activate-environment: true | |
channels: conda-forge,defaults | |
- name: Install pip dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install '.[test]' | |
- name: Install conda dependencies | |
if: ${{ matrix.slepc == 'slepc' }} | |
shell: bash -el {0} | |
run: | | |
conda install petsc4py slepc4py mpi4py | |
- name: Test | |
run: | | |
python -m pytest --cov --cov-append --cov-report=term-missing --cov-config=tox.ini --ignore docs/ -vv | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
flags: unittests | |
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }} | |
env_vars: OS,PYTHON | |
fail_ci_if_error: false | |
verbose: true |