Skip to content

Update .readthedocs.yaml #119

Update .readthedocs.yaml

Update .readthedocs.yaml #119

name: Google Colab Compatibility
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
colab-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y glpk-utils
- name: Install openTEPES
run: |
python -m pip install --upgrade pip
pip install .
pip install pytest highspy
- name: Check version
run: |
python -c "import openTEPES; print(openTEPES.__version__)" || echo "No version defined"
- name: Run tests
run: |
pytest -vv tests/test_run.py