Skip to content

Commit

Permalink
replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gracieflores committed Jun 17, 2022
1 parent 2107b46 commit 8275283
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 24 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test pypairtree

on: [push, pull_request, workflow_dispatch]

jobs:
build:

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

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 tox flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 pypairtree tests setup.py --count --exit-zero --max-line-length=99 --statistics
- name: Run the tests
run: |
tox
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

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

0 comments on commit 8275283

Please sign in to comment.