Skip to content

Commit

Permalink
Merge pull request #12 from unt-libraries/add-github-actions
Browse files Browse the repository at this point in the history
Add GitHub actions
  • Loading branch information
gracieflores authored Jun 23, 2022
2 parents 2107b46 + bbcbb16 commit 126d2fe
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 29 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test pypairtree

on: [push, pull_request, workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest flake8
- name: Lint with flake8
run: |
# Python syntax errors or undefined names will stop the build completely.
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero will still allow the tests to pass, with these types of errors as warnings.
flake8 pypairtree tests setup.py --count --exit-zero --max-line-length=99 --statistics
- name: Run the tests
run: |
pytest
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ x.x.x
-----

* Added Python 3.7 as supported version.
* Replaced Travis with Github Actions.
* Added Python 3.8 and 3.9 to testing.
* Dropped tests against Python 2.7, 3.4, and 3.5.


1.1.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pypairtree [![Build Status](https://travis-ci.org/unt-libraries/pypairtree.svg?branch=master)](https://travis-ci.org/unt-libraries/pypairtree)
# pypairtree [![Build Status](https://github.com/unt-libraries/pypairtree/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/unt-libraries/pypairtree/actions)

pypairtree is a Python implementation of Pairtree for storing objects
in a filesystem hierarchy that maps object identifiers to two character
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
'Intended Audience :: System Administrators',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py34,py35,py36,py37,flake8
envlist = py{36,37,38,39},flake8

[testenv]
deps=pytest
Expand Down

0 comments on commit 126d2fe

Please sign in to comment.