diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..4b7c9db --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,14 @@ +name: Pull Request +on: + pull_request: + types: [opened] +jobs: + test: + name: Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Create venv + run: make venv + - name: Run tests + run: make test diff --git a/.github/workflows/main.yml b/.github/workflows/release.yml similarity index 88% rename from .github/workflows/main.yml rename to .github/workflows/release.yml index 87a0f95..51fba09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,10 @@ -name: Tests +name: Release on: push: branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: jobs: test: - name: "Tests" + name: Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 865d753..9f04842 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Pynamodb Utils is a collection of small helper functions, utilities and classes which make common patterns easier. It helped me make my job easier in the past. -[![Tests](https://github.com/micmurawski/pynamodb-utils/actions/workflows/main.yml/badge.svg)](https://github.com/micmurawski/pynamodb-utils/actions/workflows/main.yml) [![pypi](https://img.shields.io/pypi/v/pynamodb-utils.svg)](https://pypi.org/project/pynamodb-utils/) +[![Tests](https://github.com/micmurawski/pynamodb-utils/actions/workflows/release.yml/badge.svg)](https://github.com/micmurawski/pynamodb-utils/actions/workflows/release.yml) [![pypi](https://img.shields.io/pypi/v/pynamodb-utils.svg)](https://pypi.org/project/pynamodb-utils/) ## Examples are: diff --git a/setup.py b/setup.py index dc54029..3a3772d 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def read(*parts): 'tests', ) ), - install_requires=["pynamodb>=5.0.0"], + install_requires=["pynamodb>=5.0.0,<6.0.0"], include_package_data=True, python_requires=">=3.6", license="MIT",