-
Notifications
You must be signed in to change notification settings - Fork 124
46 lines (34 loc) · 854 Bytes
/
tests.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
35
36
37
38
39
40
41
42
43
44
45
name: Tests
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install system dependencies
run: |
sudo apt update
sudo apt install python3-lxml python3-dateutil
- name: install Python dependencies
run: |
pip install bandit flake8 coverage liccheck
- name: install feedgen
run: |
python setup.py install
- name: run linter
run: make test
- name: run license check
run: liccheck -s .licenses.ini
- name: run tests
run: |
python -m feedgen
python -m feedgen atom
python -m feedgen rss
- name: run coverage
run: coverage report --fail-under=93