-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from pimoroni/actions
Add GitHub actions workflow
- Loading branch information
Showing
12 changed files
with
242 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Python Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [2.7, 3.6, 3.7, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade setuptools tox | ||
- name: Run Tests | ||
working-directory: library | ||
run: | | ||
tox -e py | ||
- name: Coverage | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: library | ||
run: | | ||
python -m pip install coveralls | ||
coveralls --service=github | ||
if: ${{ matrix.python == '3.9' }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include CHANGELOG.txt | ||
include LICENSE.txt | ||
include README.rst | ||
include README.md | ||
include setup.py | ||
recursive-include ledshim *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# LED SHIM | ||
|
||
[![Build Status](https://travis-ci.com/pimoroni/led-shim.svg?branch=master)](https://travis-ci.com/pimoroni/led-shim) | ||
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/led-shim/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/led-shim?branch=master) | ||
[![PyPi Package](https://img.shields.io/pypi/v/ledshim.svg)](https://pypi.python.org/pypi/ledshim) | ||
[![Python Versions](https://img.shields.io/pypi/pyversions/ledshim.svg)](https://pypi.python.org/pypi/ledshim) | ||
|
||
https://shop.pimoroni.com/products/led-shim | ||
|
||
28 tiny RGB LED pixels in a single row that just slip right onto your Pi's pins, no soldering required! LED SHIM is ideal for status updates, notifications, a VU meter, or as a bar graph for sensor readings. | ||
|
||
## Installing | ||
|
||
### Full install (recommended): | ||
|
||
We've created an easy installation script that will install all pre-requisites and get your LED SHIM | ||
up and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal | ||
on your Raspberry Pi desktop, as illustrated below: | ||
|
||
![Finding the terminal](http://get.pimoroni.com/resources/github-repo-terminal.png) | ||
|
||
In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions: | ||
|
||
```bash | ||
curl https://get.pimoroni.com/ledshim | bash | ||
``` | ||
|
||
### Manual install: | ||
|
||
```bash | ||
python3 -m pip install ledshim | ||
``` | ||
|
||
### Development: | ||
|
||
If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, `cd` to the library directory, and run: | ||
|
||
```bash | ||
python3 setup.py install | ||
``` | ||
|
||
In all cases you will have to enable the i2c bus. | ||
|
||
## Documentation & Support | ||
|
||
* Guides and tutorials - https://learn.pimoroni.com/led-shim | ||
* Function reference - http://docs.pimoroni.com/ledshim/ | ||
* GPIO Pinout - https://pinout.xyz/pinout/led_shim | ||
* Get help - http://forums.pimoroni.com/c/support | ||
|
||
# Changelog | ||
0.0.2 | ||
----- | ||
|
||
* Add `set_multiple_pixels` | ||
* Updated packaging | ||
* Linting & minor improvements to docstrings | ||
|
||
0.0.1 | ||
----- | ||
|
||
* Initial release | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.