Skip to content

Commit

Permalink
Move to GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Mar 10, 2021
1 parent 2b74541 commit b371048
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 15 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install flake8 pytest .
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Object interface for a Python dictionary

.. image:: https://img.shields.io/github/last-commit/jfjlaros/dict-obj.svg
:target: https://github.com/jfjlaros/dict-obj/graphs/commit-activity
.. image:: https://travis-ci.org/jfjlaros/dict-obj.svg?branch=master
:target: https://travis-ci.org/jfjlaros/dict-obj
.. image:: https://github.com/jfjlaros/dict-obj/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/jfjlaros/dict-obj/actions/workflows/python-package.yml
.. image:: https://readthedocs.org/projects/dict-obj/badge/?version=latest
:target: https://dict-obj.readthedocs.io/en/latest
.. image:: https://img.shields.io/github/release-date/jfjlaros/dict-obj.svg
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ include_package_data = True
packages = find:
install_requires =
configparser

[flake8]
per-file-ignores =
dict-obj/__init__.py: F401
6 changes: 0 additions & 6 deletions tox.ini

This file was deleted.

0 comments on commit b371048

Please sign in to comment.