From 66697474a3c25a10a977193c3c279da4f48649ec Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Sat, 27 Apr 2024 02:20:28 -0400 Subject: [PATCH] Tweaking setup --- .gitattributes | 3 ++- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 2 +- setup.py | 3 ++- 4 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.gitattributes b/.gitattributes index 440962c..81cba48 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -py-pipeline/_version.py export-subst \ No newline at end of file +py-pipeline/_version.py export-substpypipeline/_version.py export-subst +pypipeline/_version.py export-subst diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..1571b7b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Tests + +on: + pull_request: + push: + +jobs: + build: + runs-on: ${{ matrix.os }} + environment: + name: test + strategy: + fail-fast: false + matrix: + python-version: [3.7, 3.8, 3.9, '3.10', '3.11'] + os: [ubuntu-latest, macOS-latest, windows-latest] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4.3.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install --only-binary=wheel setuptools twine + python -m pip install -e ".[test]" + + - name: Unit tests + run: | + python -m pytest diff --git a/README.md b/README.md index 1b9eed4..86cc819 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PyPipeline -[![Tests](https://github.com/borkweb/pypipeline/workflows/Tests/badge.svg)](https://github.com/borkweb/pypipeline/actions?query=branch%3Amain) [![Static Analysis](https://github.com/borkweb/pypipeline/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/borkweb/pypipeline/actions/workflows/static-analysis.yml) +[![Tests](https://github.com/borkweb/pypipeline/workflows/Tests/badge.svg)](https://github.com/borkweb/pypipeline/actions?query=branch%3Amain) A Pipeline / [Chain of Responsibility](https://refactoring.guru/design-patterns/chain-of-responsibility) design pattern implementation based on [Laravel's Pipeline implementation](https://github.com/illuminate/pipeline/blob/master/Pipeline.python). diff --git a/setup.py b/setup.py index 9eed5e4..228e1a1 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,8 @@ packages=find_packages(), version='0.1.0', description='A library that implements the Chain of Responsibility pattern.', - author='Matthew Batchelder ', + author='Matthew Batchelder', + author_email='borkweb@gmail.com', install_requires=[], setup_requires=['pytest-runner'], tests_require=['pytest'],