Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI should install dependencies in a venv. #79

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,35 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
source venv/bin/activate
pip install -e .
- name: Linting
run: flake8 ./
run: |
source venv/bin/activate
flake8 ./
- name: unit test
run: pytest tests
run: |
source venv/bin/activate
pytest tests
- name: run linear_toy_demo
run: python examples/linear_toy/linear_toy_demo.py
run: |
source venv/bin/activate
python examples/linear_toy/linear_toy_demo.py
- name: run linear_toy_w_input_limits_demo
run: python examples/linear_toy/linear_toy_w_input_limits_demo.py
run: |
source venv/bin/activate
python examples/linear_toy/linear_toy_w_input_limits_demo.py
- name: run nonlinear_toy_demo
run: python examples/nonlinear_toy/demo.py
run: |
source venv/bin/activate
python examples/nonlinear_toy/demo.py
- name: run nonlinear toy demo_trigpoly
run: python examples/nonlinear_toy/demo_trigpoly.py --unit_test
run: |
source venv/bin/activate
python examples/nonlinear_toy/demo_trigpoly.py --unit_test