-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
name: Tests | ||
name: Multiple dispatch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# When this workflow is queued, automatically cancel any previous running | ||
# or pending jobs from the same branch | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
on: [push] | ||
|
||
jobs: | ||
test: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Install testing dependencies | ||
run: python -m pip install pytest pytest-benchmark | ||
|
||
- name: Install multipledispatch | ||
run: python -m pip install -e . | ||
|
||
- name: Run tests | ||
run: py.test --verbose --doctest-modules | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
#!/usr/bin/env python | ||
|
||
from os.path import exists | ||
from setuptools import setup | ||
|
||
setup( | ||
name="multipledispatch", | ||
version="0.6.0", | ||
version="1.0.0", | ||
description="Multiple dispatch", | ||
url="http://github.com/mrocklin/multipledispatch/", | ||
author="Matthew Rocklin", | ||
author_email="mrocklin@gmail.com", | ||
license="BSD", | ||
keywords="dispatch", | ||
packages=["multipledispatch"], | ||
long_description=(open("README.rst").read() if exists("README.rst") else ""), | ||
long_description=open("README.rst").read(), | ||
zip_safe=False, | ||
) |