-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 995 Bytes
/
prs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PRs
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10"]
poetry-version: [1.3.2]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install Dependencies
run: |
poetry install --no-root
- name: Lint with flake8/pylint
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 hc_pyconsul/
poetry run pylint hc_pyconsul/
poetry run mypy hc_pyconsul/
- name: Test with pytest
run: |
poetry run pytest --cov=hc_pyconsul tests/ --junitxml=report.xml --cov-report xml