Update this.py #588
Workflow file for this run
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: Check Optional Dependencies | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install dependencies | |
run: | | |
uv pip install pytest setuptools wheel --system | |
- name: Run Base Install | |
run: | | |
uv pip install -e . --system | |
- name: Run Checks | |
run: | | |
python tests/scripts/check_pip.py missing cvxpy | |
python tests/scripts/check_pip.py installed scikit-learn | |
python tests/scripts/import_all.py | |
- name: Install cvxpy | |
run: | | |
uv pip install -e ".[cvxpy]" --system | |
- name: Run Checks | |
run: | | |
python tests/scripts/check_pip.py installed cvxpy scikit-learn | |
python tests/scripts/import_all.py | |
- name: Install All | |
run: | | |
uv pip install -e ".[all]" --system | |
- name: Run Checks | |
run: | | |
python tests/scripts/check_pip.py installed cvxpy formulaic scikit-learn umap-learn | |
- name: Docs can Build | |
run: | | |
sudo apt-get update && sudo apt-get install pandoc | |
uv pip install -e ".[docs]" --system | |
mkdocs build |