-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch switches from Travis CI to GitHub Actions for running CI tests on pull requests and pushes.
- Loading branch information
Showing
3 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters