Skip to content

fix additional broken links (from @slivingston review) #879

fix additional broken links (from @slivingston review)

fix additional broken links (from @slivingston review) #879

name: Conda-based pytest
on: [push, pull_request]
jobs:
test-linux-conda:
name: >
Py${{ matrix.python-version }};
${{ matrix.slycot || 'no' }} Slycot;
${{ matrix.pandas || 'no' }} Pandas;
${{ matrix.cvxopt || 'no' }} CVXOPT
${{ matrix.mplbackend && format('; {0}', matrix.mplbackend) }}
runs-on: ubuntu-latest
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version: ['3.10', '3.12']
slycot: ["", "conda"]
pandas: [""]
cvxopt: ["", "conda"]
mplbackend: [""]
include:
- python-version: '3.12'
slycot: conda
pandas: conda
cvxopt: conda
mplbackend: QtAgg
steps:
- uses: actions/checkout@v3
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: test-env
environment-file: .github/conda-env/test-env.yml
miniforge-version: latest
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
auto-update-conda: false
auto-activate-base: false
- name: Install optional dependencies
shell: bash -l {0}
run: |
if [[ '${{matrix.cvxopt}}' == 'conda' ]]; then
mamba install cvxopt
fi
if [[ '${{matrix.slycot}}' == 'conda' ]]; then
mamba install slycot
fi
if [[ '${{matrix.pandas}}' == 'conda' ]]; then
mamba install pandas
fi
if [[ '${{matrix.mplbackend}}' == 'QtAgg' ]]; then
mamba install pyqt
fi
- name: Test with pytest
shell: bash -l {0}
env:
MPLBACKEND: ${{ matrix.mplbackend }}
run: |
pytest -v --cov=control --cov-config=.coveragerc control/tests
coverage xml
- name: report coverage
uses: coverallsapp/github-action@v2
with:
flag-name: conda-pytest_py${{ matrix.python-version }}_${{ matrix.slycot || 'no' }}-Slycot_${{ matrix.pandas || 'no' }}-Pandas_${{ matrix.cvxopt || 'no' }}_CVXOPT-${{ matrix.mplbackend && format('; {0}', matrix.mplbackend) }}
parallel: true
file: coverage.xml
coveralls-final:
name: Finalize parallel coveralls
if: always()
needs:
- test-linux-conda
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true