Skip to content

Commit

Permalink
Merge branch 'master' into node-fact-query
Browse files Browse the repository at this point in the history
  • Loading branch information
gdubicki authored Mar 21, 2021
2 parents d342567 + 413ab40 commit 1acc64f
Show file tree
Hide file tree
Showing 41 changed files with 2,028 additions and 1,414 deletions.
2 changes: 0 additions & 2 deletions .bandit

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: publish 🐍 to PyPI

on:
push:
tags:
- "v*"

jobs:
build-n-publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install wheel
- name: Build
run: |
python setup.py build sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN_PYPUPPETDB }}
# repository_url: https://test.pypi.org/legacy/
- name: Create release in GitHub
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
21 changes: 21 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Security tests

on: [push, pull_request]

jobs:
security:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install bandit
- name: Run bandit
run: |
bandit -r pypuppetdb
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: tests (unit)

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest

strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.7, 3.8]

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: |
pip install -r requirements-test.txt
- name: Test
run: |
pytest --pep8 --mypy --strict
- name: Run coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
13 changes: 13 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2

sphinx:
configuration: docs/conf.py
fail_on_warning: true

python:
version: 3.8
install:
- requirements: docs/requirements.txt
- method: setuptools
path: .
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 1acc64f

Please sign in to comment.