Skip to content

Run tests in Actions #47

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

Merged
merged 3 commits into from
Aug 31, 2020
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests

on: [pull_request, push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Versions
run: |
python3 --version
- name: Checkout Current Repo
uses: actions/checkout@v1
with:
submodules: true
- name: Install pytest
run: pip install pytest
- name: Install locally
run: pip install .
- name: Run tests
run: pytest
8 changes: 4 additions & 4 deletions adafruit_motor/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class StepperMotor:

**PWM**

:param ~pulseio.PWMOut ain1: ``pulseio.PWMOut``-compatible output connected to the driver for
:param ~pwmio.PWMOut ain1: `pwmio.PWMOut`-compatible output connected to the driver for
the first coil (unipolar) or first input to first coil (bipolar).
:param ~pulseio.PWMOut ain2: ``pulseio.PWMOut``-compatible output connected to the driver for
:param ~pwmio.PWMOut ain2: `pwmio.PWMOut`-compatible output connected to the driver for
the third coil (unipolar) or second input to first coil (bipolar).
:param ~pulseio.PWMOut bin1: ``pulseio.PWMOut``-compatible output connected to the driver for
:param ~pwmio.PWMOut bin1: `pwmio.PWMOut`-compatible output connected to the driver for
the second coil (unipolar) or second input to second coil (bipolar).
:param ~pulseio.PWMOut bin2: ``pulseio.PWMOut``-compatible output connected to the driver for
:param ~pwmio.PWMOut bin2: `pwmio.PWMOut`-compatible output connected to the driver for
the fourth coil (unipolar) or second input to second coil (bipolar).
:param int microsteps: Number of microsteps between full steps. Must be at least 2 and even.

Expand Down