Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
This patch switches from Travis CI to GitHub Actions for running CI
tests on pull requests and pushes.
  • Loading branch information
lkiesow committed Dec 21, 2023
1 parent 8eef403 commit bcac0ec
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 34 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/tests.yml
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

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
Feedgenerator
=============

.. image:: https://travis-ci.org/lkiesow/python-feedgen.svg?branch=master
:target: https://travis-ci.org/lkiesow/python-feedgen
:alt: Build Status

.. image:: https://coveralls.io/repos/github/lkiesow/python-feedgen/badge.svg?branch=master
:target: https://coveralls.io/github/lkiesow/python-feedgen?branch=master
:alt: Test Coverage Status


This module can be used to generate web feeds in both ATOM and RSS format. It
has support for extensions. Included is for example an extension to produce
Podcasts.
Expand Down

0 comments on commit bcac0ec

Please sign in to comment.