diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9c1c4c..b7e339e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,14 @@ name: Run Tests -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: test: + name: Python ${{ matrix.python-version }} / Dramatiq ${{ matrix.dramatiq-major }}.x runs-on: ubuntu-latest strategy: @@ -13,6 +18,10 @@ jobs: - "3.11" - "3.12" - "3.13" + - "3.14" + dramatiq-major: + - "1" + - "2" steps: - name: Checkout repository @@ -27,6 +36,15 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + pip install "dramatiq~=${{ matrix.dramatiq-major }}.0" + + - name: Show versions + run: | + python - <<'PY' + import dramatiq, sys + print(f"Python {sys.version.split()[0]}") + print(f"Dramatiq {dramatiq.__version__}") + PY - name: Run tests run: make test diff --git a/setup.py b/setup.py index 931e9a3..9499bd6 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ url="https://github.com/Outset-AI/dramatiq-workflow", packages=find_packages(), install_requires=[ - "dramatiq>=1.10.0", + "dramatiq>=1.10.0,<3.0.0", ], classifiers=[ "Programming Language :: Python :: 3",