-
Notifications
You must be signed in to change notification settings - Fork 117
50 lines (47 loc) · 1.32 KB
/
dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Check Optional Dependencies
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install flake8 pytest black
- name: Run Base Install
run: |
python -m pip install -e ".[base]"
- name: Run Checks
run: |
python tests/scripts/check_pip.py missing cvxpy
python tests/scripts/check_pip.py contains scikit-learn
python tests/scripts/import_all.py
- name: Install cvxpy
run: |
python -m pip install -e ".[cvxpy]"
- name: Run Checks
run: |
python tests/scripts/check_pip.py contains cvxpy scikit-learn
python tests/scripts/import_all.py
- name: Install All
run: |
python -m pip install -e ".[all]"
- name: Run Checks
run: |
python tests/scripts/check_pip.py contains cvxpy scikit-learn
- name: Docs can Build
run: |
sudo apt-get update && sudo apt-get install pandoc
python -m pip install -e ".[docs]"
sphinx-build doc docs