Skip to content

Commit 9dbfa18

Browse files
committed
pip install, run examples and notebooks in conda-forge base environment
1 parent 87a9c57 commit 9dbfa18

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

.github/workflows/install_examples.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: setup.py, examples
1+
name: Setup, Examples, Notebooks
22

33
on: [push, pull_request]
44

@@ -7,26 +7,23 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python
12-
uses: actions/setup-python@v2
13-
- name: Install Python dependencies
10+
- uses: actions/checkout@v3
11+
- name: Install Python dependencies from conda-forge
1412
run: |
15-
# Set up conda
13+
# Set up conda using the preinstalled GHA conda environment
1614
echo $CONDA/bin >> $GITHUB_PATH
15+
conda config --add channels conda-forge
16+
conda config --set channel_priority strict
1717
18-
# Set up (virtual) X11
19-
sudo apt install -y xvfb
18+
# Install build tools
19+
conda install pip setuptools setuptools-scm
2020
21-
# Install test tools
22-
conda install pip pytest
21+
# Install python-control dependencies and extras
22+
conda install numpy matplotlib scipy
23+
conda install slycot pmw jupyter
2324
24-
# Install python-control dependencies
25-
conda install numpy matplotlib scipy jupyter
26-
conda install -c conda-forge slycot pmw
27-
28-
- name: Install with setup.py
29-
run: python setup.py install
25+
- name: Install from source
26+
run: pip install .
3027

3128
- name: Run examples
3229
run: |

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
exec(fd.read(), ver)
77
version = ver.get('__version__', 'dev')
88
except IOError:
9-
version = 'dev'
9+
version = '0.0.0dev'
1010

1111
with open('README.rst') as fp:
1212
long_description = fp.read()

0 commit comments

Comments
 (0)