forked from dfetch-org/dfetch
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.76 KB
/
test.yml
File metadata and controls
43 lines (37 loc) · 1.76 KB
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
35
36
37
38
39
40
41
42
43
name: Test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install .[development,test]
- run: codespell # Check for typo's
- run: isort --diff dfetch # Checks import order
- run: black --check dfetch # Checks code style
# - run: flake8 dfetch # Checks pep8 conformance
- run: pylint dfetch # Checks pep8 conformance
- run: mypy --strict dfetch # Check types
- run: doc8 doc # Checks documentation
- run: pydocstyle dfetch # Checks doc strings
- run: bandit dfetch # Checks security issues
- run: xenon -b B -m A -a A dfetch # Check code quality
- run: pytest --cov=dfetch tests # Run tests
- run: coverage run --source=dfetch --append -m behave features # Run features tests
- run: coverage xml -o coverage.xml # Create XML report
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml