From b28daba4607d3de7053f5a89111292a75351c119 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 28 Aug 2020 12:26:46 -0700 Subject: [PATCH 1/2] Run tests in Actions --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2f9163b --- /dev/null +++ b/.github/workflows/test.yml @@ -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 From 9c48805794812b098759c77c29f586c1e457db21 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 28 Aug 2020 12:31:09 -0700 Subject: [PATCH 2/2] pulseio.PWMOut -> pwmio.PWMOut --- adafruit_motor/stepper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adafruit_motor/stepper.py b/adafruit_motor/stepper.py index 5873cec..4862b98 100644 --- a/adafruit_motor/stepper.py +++ b/adafruit_motor/stepper.py @@ -61,13 +61,13 @@ class StepperMotor: """A bipolar stepper motor or four coil unipolar motor. - :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. """