From 689fab40b38fcd65cd2e7d453b98b4b22220b0ca Mon Sep 17 00:00:00 2001
From: Remco de Boer <29308176+redeboer@users.noreply.github.com>
Date: Fri, 13 Oct 2023 15:20:12 +0200
Subject: [PATCH] DX: run AmpForm tests with QRules v0.9.x

---
 .github/workflows/ci-qrules-v0.9.yml | 36 ++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 .github/workflows/ci-qrules-v0.9.yml

diff --git a/.github/workflows/ci-qrules-v0.9.yml b/.github/workflows/ci-qrules-v0.9.yml
new file mode 100644
index 000000000..b416eba2b
--- /dev/null
+++ b/.github/workflows/ci-qrules-v0.9.yml
@@ -0,0 +1,36 @@
+name: Test with QRules v0.9
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+env:
+  PYTHONHASHSEED: "0"
+
+on:
+  push:
+    branches:
+      - main
+      - epic/*
+      - "[0-9]+.[0-9]+.x"
+  pull_request:
+    branches:
+      - main
+      - epic/*
+      - "[0-9]+.[0-9]+.x"
+  workflow_dispatch:
+
+jobs:
+  pytest:
+    name: Run unit tests
+    runs-on: ubuntu-22.04
+    steps:
+      - uses: actions/checkout@v4
+      - uses: ComPWA/actions/pip-install@v1
+        with:
+          additional-packages: tox
+          editable: "yes"
+          extras: test
+          python-version: "3.9"
+          specific-packages: qrules==0.9.*
+      - run: pytest -n auto