Skip to content

Commit

Permalink
Merge pull request #41 from machineagency/fixsetup
Browse files Browse the repository at this point in the history
Fixsetup
  • Loading branch information
brendenpelkie authored Dec 8, 2023
2 parents b38affe + 6712464 commit d0ca2c5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: test_package

on:
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Format code with yapf
run:
yapf -i -r .
#- name: Test with pytest
# run: |
#pytest
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def read(fname):
"Operating System :: POSIX :: Linux",
],
python_requires='>=3.6',
install_requires=['pyserial==3.5', 'requests', 'ipykernel', 'numpy', 'opencv_contrib_python==4.5.3.56', 'matplotlib', "Jinja2", "sphinx", "sphinx-design", "pydata_sphinx_theme", "sphinx-autoapi", "picamera;platform_system=='Linux'"]
install_requires=['pyserial==3.5', 'requests', 'ipykernel', 'numpy', 'opencv_contrib_python==4.5.3.56', 'matplotlib', "Jinja2", "sphinx", "sphinx-design", "pydata_sphinx_theme", "sphinx-autoapi", "picamera;platform_machine=='aarch64'"]
)

0 comments on commit d0ca2c5

Please sign in to comment.