Skip to content

Commit

Permalink
Merge branch 'release/1.0.0a0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
agates committed Aug 30, 2021
2 parents b4e26bd + 2c937f1 commit 258ab5f
Show file tree
Hide file tree
Showing 51 changed files with 3,527 additions and 407 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**/*.egg-info
**/__pycache__
build
dist
.git

.idea
.vscode
.github
.mypy_cache
.pytest_cache

.env*
9 changes: 9 additions & 0 deletions .env.EXAMPLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PODPING_HIVE_ACCOUNT=<your-account-here>
PODPING_HIVE_POSTING_KEY=<your-posting-key-here>

PODPING_LISTEN_IP=127.0.0.1
PODPING_LISTEN_PORT=9999

PODPING_SANITY_CHECK=true
PODPING_LIVETEST=false
PODPING_IGNORE_CONFIG_UPDATES=false
9 changes: 9 additions & 0 deletions .env.test.EXAMPLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PODPING_HIVE_ACCOUNT=<your-account-here>
PODPING_HIVE_POSTING_KEY=<your-posting-key-here>

PODPING_LISTEN_IP=127.0.0.1
PODPING_LISTEN_PORT=9979

PODPING_SANITY_CHECK=false
PODPING_LIVETEST=true
PODPING_IGNORE_CONFIG_UPDATES=false
16 changes: 16 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Security vulnerability scan

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Run bandit
uses: tj-actions/[email protected]
with:
targets: |
src
options: "-r"
12 changes: 12 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Code format lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Run black
uses: psf/black@stable
47 changes: 47 additions & 0 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docker publish

on:
push:
branches:
- 'main'
- 'develop'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'develop'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: podcastindexorg/podping-hivewriter
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
16 changes: 16 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PyPi publish

on:
release:
types: [ published ]

jobs:
build_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
ignore_dev_requirements: "yes"
pypi_token: ${{ secrets.PYPI_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi
- name: Test with pytest
env:
PODPING_HIVE_ACCOUNT: ${{ secrets.PODPING_HIVE_ACCOUNT }}
PODPING_HIVE_POSTING_KEY: ${{ secrets.PODPING_HIVE_POSTING_KEY }}
run: |
pytest --runslow
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ __pycache__/
# VSCode
.vscode

*.code-workspace

# Local History for Visual Studio Code
.history/

# C extensions
*.so
Expand Down Expand Up @@ -140,4 +144,10 @@ dmypy.json
.pytype/

# Cython debug symbols
cython_debug/
cython_debug/
.DS_Store
.vscode/launch.json
.vscode/extensions.json
.env.test
.vscode/tasks.json
.vscode/settings.json
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/podping-hivewriter.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 258ab5f

Please sign in to comment.