Skip to content

Commit

Permalink
Tweaking setup
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 27, 2024
1 parent 6489d97 commit 6669747
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
py-pipeline/_version.py export-subst
py-pipeline/_version.py export-substpypipeline/_version.py export-subst
pypipeline/_version.py export-subst
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
packages=find_packages(),
version='0.1.0',
description='A library that implements the Chain of Responsibility pattern.',
author='Matthew Batchelder <[email protected]>',
author='Matthew Batchelder',
author_email='[email protected]',
install_requires=[],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
Expand Down

0 comments on commit 6669747

Please sign in to comment.