Skip to content

Commit

Permalink
Update CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jun 27, 2023
1 parent 4ab76a2 commit 881361f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 39 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linting

on:
push:
branches: main
pull_request:
branches: main

jobs:
checks:
name: pre-commit hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: pre-commit/action@v3.0.0
24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Multiple dispatch

on: [push]

jobs:
build:

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

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip pytest pytest-benchmark .
- name: Test with pytest
run: |
pytest
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

14 changes: 2 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,8 @@ Installation and Dependencies

pip install multipledispatch

or

::

easy_install multipledispatch


``multipledispatch`` supports Python 2.6+ and Python 3.2+ with a common
codebase. It is pure Python and requires only the small `six
<https://pypi.org/project/six/>`_ library as a dependency.

It is, in short, a light weight dependency.
It is Pure-Python and depends only on the standard library.
It is a light weight dependency.


License
Expand Down

0 comments on commit 881361f

Please sign in to comment.