Skip to content

Commit 8bc7556

Browse files
Add from/till filter for reports
2 parents 76d4057 + 8244e29 commit 8bc7556

24 files changed

+1087
-125
lines changed

.coveragerc

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
[report]
22
exclude_lines =
33
pragma: notest
4+
5+
[run]
6+
source =
7+
puppetboard
8+
9+
omit =
10+
# don't check the test themselves, obviously
11+
test/*
12+
13+
# no point in checking this
14+
setup.py

.github/workflows/publish-to-pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up Python 3.8
15+
- name: Set up Python 3.9
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919
- name: Install dependencies
2020
run: |
2121
pip install wheel

.github/workflows/tests.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
max-parallel: 5
1212
matrix:
13-
python-version: [3.6, 3.7, 3.8, 3.9]
13+
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
1414

1515
steps:
1616
- uses: actions/checkout@v2
@@ -20,12 +20,13 @@ jobs:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
2222
run: |
23+
pip install --upgrade wheel setuptools
2324
pip install -r requirements-test.txt
25+
mypy --install-types --non-interactive puppetboard/ test/
2426
- name: Test
2527
run: |
26-
pytest --pep8 --mypy --strict
27-
- name: Run coveralls
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: |
31-
coveralls --service=github
28+
pytest --cov=. --cov-report=xml --flake8 --strict-markers --mypy puppetboard test
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v2
31+
with:
32+
fail_ci_if_error: true

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This is the changelog for Puppetboard.
66
Development
77
-----------
88

9+
* Add support for Python 3.10
10+
911
3.1.0
1012
-----
1113

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8-alpine
1+
FROM python:3.9-alpine
22

33
ENV PUPPETBOARD_PORT 80
44
EXPOSE 80

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![PyPi Version](https://img.shields.io/pypi/v/puppetboard)](https://pypi.org/project/puppetboard/)
44
[![PyPi Downloads](https://img.shields.io/pypi/dm/puppetboard)](https://pypi.org/project/puppetboard/)
55
![Tests Status](https://github.com/voxpupuli/puppetboard/workflows/tests%20(unit)/badge.svg)
6-
[![Coverage Status](https://img.shields.io/coveralls/voxpupuli/puppetboard.svg)](https://coveralls.io/r/voxpupuli/puppetboard)
6+
[![codecov](https://codecov.io/gh/voxpupuli/puppetboard/branch/master/graph/badge.svg?token=uez5RoiU6I)](https://codecov.io/gh/voxpupuli/puppetboard)
77
[![By Voxpupuli](https://img.shields.io/badge/by-Vox%20Pupuli%20%F0%9F%A6%8A-ef902f.svg)](http://voxpupuli.org)
88

99

@@ -26,7 +26,7 @@ for the open source Puppet.
2626
## Requirements
2727

2828
* PuppetDB v. 3.0-7.5 (will most probably work with newer, but this has not been tested yet)
29-
* Python 3.6 / 3.7 / 3.8 / 3.9
29+
* Python 3.6 / 3.7 / 3.8 / 3.9 / 3.10
3030

3131
## Installation
3232

@@ -185,11 +185,18 @@ and is built with the help of the [Flask](https://flask.palletsprojects.com) mic
185185
If you wish to hack on Puppetboard you should fork/clone the Github repository and then install the requirements through:
186186

187187
```bash
188-
pip install -r requirements-test.txt
188+
pip install --upgrade wheel setuptools
189+
pip install --upgrade -r requirements-test.txt
190+
mypy --install-types --non-interactive puppetboard/ test/
189191
```
190192

191193
You're advised to do this inside a virtualenv specifically created to work on Puppetboard as to not pollute your global Python installation.
192194

195+
You can run the tests with:
196+
```bash
197+
pytest --cov=. --cov-report=xml --flake8 --strict-markers --mypy puppetboard test
198+
```
199+
193200
You can run the app it in development mode by simply executing:
194201

195202
```bash

0 commit comments

Comments
 (0)