-
-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (30 loc) · 805 Bytes
/
colab-compatibility.yml
File metadata and controls
37 lines (30 loc) · 805 Bytes
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
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