Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jun 27, 2023
1 parent 261ad60 commit 0d667e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/test.yaml
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
5 changes: 2 additions & 3 deletions setup.py
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,
)

0 comments on commit 0d667e5

Please sign in to comment.