Skip to content

Commit 6082918

Browse files
authored
Merge pull request #47 from tannewt/run_tests
Run tests in Actions
2 parents c60fc28 + adf4a47 commit 6082918

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.github/workflows/test.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run Tests
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up Python 3.6
10+
uses: actions/setup-python@v1
11+
with:
12+
python-version: 3.6
13+
- name: Versions
14+
run: |
15+
python3 --version
16+
- name: Checkout Current Repo
17+
uses: actions/checkout@v1
18+
with:
19+
submodules: true
20+
- name: Install pytest
21+
run: pip install pytest
22+
- name: Install locally
23+
run: pip install .
24+
- name: Run tests
25+
run: pytest

adafruit_motor/stepper.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ class StepperMotor:
7373
7474
**PWM**
7575
76-
:param ~pulseio.PWMOut ain1: ``pulseio.PWMOut``-compatible output connected to the driver for
76+
:param ~pwmio.PWMOut ain1: `pwmio.PWMOut`-compatible output connected to the driver for
7777
the first coil (unipolar) or first input to first coil (bipolar).
78-
:param ~pulseio.PWMOut ain2: ``pulseio.PWMOut``-compatible output connected to the driver for
78+
:param ~pwmio.PWMOut ain2: `pwmio.PWMOut`-compatible output connected to the driver for
7979
the third coil (unipolar) or second input to first coil (bipolar).
80-
:param ~pulseio.PWMOut bin1: ``pulseio.PWMOut``-compatible output connected to the driver for
80+
:param ~pwmio.PWMOut bin1: `pwmio.PWMOut`-compatible output connected to the driver for
8181
the second coil (unipolar) or second input to second coil (bipolar).
82-
:param ~pulseio.PWMOut bin2: ``pulseio.PWMOut``-compatible output connected to the driver for
82+
:param ~pwmio.PWMOut bin2: `pwmio.PWMOut`-compatible output connected to the driver for
8383
the fourth coil (unipolar) or second input to second coil (bipolar).
8484
:param int microsteps: Number of microsteps between full steps. Must be at least 2 and even.
8585

0 commit comments

Comments
 (0)