-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github Actions workflows for automated deployment
- Loading branch information
1 parent
8311667
commit d9bda09
Showing
7 changed files
with
80 additions
and
10 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,31 @@ | ||
name: Deploy to PyPi | ||
|
||
on: | ||
release: | ||
types: published | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Update Pip | ||
run: python3 -m pip install --upgrade pip | ||
|
||
- name: Install regular and dev dependencies | ||
run: pip install .[dev] | ||
|
||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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,33 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Update Pip | ||
run: python3 -m pip install --upgrade pip | ||
|
||
- name: Install regular and dev dependencies | ||
run: pip install .[dev] | ||
|
||
- name: Lint with flake8 | ||
run: | | ||
flake8 webcamd --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 webcamd --count --exit-zero --max-complexity=30 --max-line-length=127 --statistics | ||
- name: Run unit tests | ||
run: python3 -m unittest tests/spec_*.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
Empty file.
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,5 @@ | ||
import unittest | ||
|
||
class TestWebcamD(unittest.TestCase): | ||
def test_hello_world(self): | ||
assert True |
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,14 +1,14 @@ | ||
MAJOR = 0 | ||
MAJOR = 1 | ||
MINOR = 0 | ||
PATCH = 1 | ||
PATCH = 0 | ||
|
||
APP_NAME = 'webcamd' | ||
APP_DESCRIPTION = 'A minimalist webcam streaming service.' | ||
APP_DESCRIPTION = 'A minimalist service for streaming a webcam over HLS' | ||
APP_VERSION = f'{MAJOR}.{MINOR}.{PATCH}' | ||
APP_AUTHOR = 'Igor Maculan' | ||
APP_AUTHOR_EMAIL = '[email protected]' | ||
APP_LICENSE = 'GPL-3.0' | ||
APP_URL = 'https://github.com/christopherkobayashi/octoprint-stuff' | ||
APP_URL = 'https://github.com/dmitri-mcguckin/webcamd' | ||
|
||
MAINTAINER_NAME = 'Christopher RYU' | ||
MAINTAINER_EMAIL = '[email protected]' | ||
MAINTAINER_NAME = 'Dmitri McGuckin' | ||
MAINTAINER_EMAIL = '[email protected]' |