Unverified Commit 22182975 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros
Browse files

Move to GitHub actions.

parent d2fba6e5
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
language: python
python:
- "3.5"
- "3.6"
- "3.7"
install: pip install tox-travis
script: tox
......@@ -3,8 +3,8 @@ Trie implementation using nested dictionaries
.. image:: https://img.shields.io/github/last-commit/jfjlaros/dict-trie.svg
:target: https://github.com/jfjlaros/dict-trie/graphs/commit-activity
.. image:: https://travis-ci.org/jfjlaros/dict-trie.svg?branch=master
:target: https://travis-ci.org/jfjlaros/dict-trie
.. image:: https://github.com/jfjlaros/dict-trie/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/jfjlaros/dict-trie/actions/workflows/python-package.yml
.. image:: https://readthedocs.org/projects/dict-trie/badge/?version=latest
:target: https://dict-trie.readthedocs.io/en/latest
.. image:: https://img.shields.io/github/release-date/jfjlaros/dict-trie.svg
......
[tox]
envlist = py35,py36,py37
[testenv]
deps = pytest
commands = py.test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment