Skip to content

Commit abf4fa8

Browse files
committed
add pip install to CI
1 parent 9f9f2ea commit abf4fa8

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/nightly.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: pip install odrive (nightly)
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # run at 2 AM UTC
6+
7+
jobs:
8+
nightly:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-latest, macOS-latest]
13+
#pip: [pip2, pip3]
14+
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: Install odrivetool
18+
run: |
19+
pip install monotonic # TODO: this is dishonest. Must be removed as soon as v0.5.0 is published!
20+
pip install odrive
21+
22+
# This one currently fails because Github Actions runs pip as non-root
23+
#- name: Check if udev rules were set up properly
24+
# if: matrix.os == 'ubuntu-latest'
25+
# run: test -f /etc/udev/rules.d/91-odrive.rules
26+
27+
# This step is mentioned in the user guide
28+
- name: Add ~/.local/bin to path
29+
if: matrix.os == 'ubuntu-latest'
30+
run: echo "::add-path::~/.local/bin"
31+
32+
- name: Launch odrivetool
33+
# This returns a non-zero exit code if the odrivetool throws an exception
34+
run: echo 'quit()' | odrivetool shell

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project is all about accurately driving brushless motors, for cheap. The ai
77
| master | [![Build Status](https://travis-ci.org/madcowswe/ODrive.png?branch=master)](https://travis-ci.org/madcowswe/ODrive) |
88
| devel | [![Build Status](https://travis-ci.org/madcowswe/ODrive.png?branch=devel)](https://travis-ci.org/madcowswe/ODrive) |
99

10+
[![pip install odrive (nightly)](https://github.com/madcowswe/ODrive/workflows/pip%20install%20odrive%20(nightly)/badge.svg)](https://github.com/madcowswe/ODrive/actions?query=workflow%3A%22pip+install+odrive+%28nightly%29%22)
1011

1112
Please refer to the [Developer Guide](https://docs.odriverobotics.com/developer-guide) to get started with ODrive firmware development.
1213

docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Try step 5 again
133133
sudo udevadm control --reload-rules
134134
sudo udevadm trigger
135135
```
136-
3. **Ubuntu**, **Raspbian**: If you can't invoke `odrivetool` at this point, try adding `~/.local/bin` to your `$PATH` ([see related bug](https://unix.stackexchange.com/a/392710/176715)). This is done for example by running `nano ~/.bashrc`, scrolling to the bottom, pasting `PATH=$PATH:~/.local/bin`, and then saving and closing, and close and reopen the terminal window.
136+
3. **Ubuntu**, **Raspbian**: If you can't invoke `odrivetool` at this point, try adding `~/.local/bin` to your `$PATH` ([see related bug](https://unix.stackexchange.com/a/392710/176715)). This is done for example by running `nano ~/.bashrc`, scrolling to the bottom, pasting `export PATH=$PATH:~/.local/bin`, and then saving and closing, and close and reopen the terminal window.
137137
138138
## Firmware
139139
**ODrive v3.5 and later**<br>

0 commit comments

Comments
 (0)