Skip to content

[MRG] Fix test failures due to updated packages: deprecated pytest.warns(None) syntax + GLasso update in sklearn #164

[MRG] Fix test failures due to updated packages: deprecated pytest.warns(None) syntax + GLasso update in sklearn

[MRG] Fix test failures due to updated packages: deprecated pytest.warns(None) syntax + GLasso update in sklearn #164

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
# Run normal testing with the latest versions of all dependencies
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run Tests without skggm
run: |
sudo apt-get install liblapack-dev
pip install --upgrade pip pytest
pip install wheel cython numpy scipy codecov pytest-cov scikit-learn
pytest test --cov
bash <(curl -s https://codecov.io/bash)
- name: Run Tests with skggm
env:
SKGGM_VERSION: a0ed406586c4364ea3297a658f415e13b5cbdaf8
run: |
pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION}
pytest test --cov
bash <(curl -s https://codecov.io/bash)
- name: Syntax checking with flake8
run: |
pip install flake8
flake8 --extend-ignore=E111,E114 --show-source;