branch: elpa/flymake-pyrefly
commit 2b08900bca476441d4b4a2b4e5f68a895d897f78
Author: Boris Shminke <bo...@shminke.com>
Commit: Boris Shminke <bo...@shminke.com>

    add CI workflow
---
 .github/workflows/main.yml | 18 ++++++++++++++++++
 run-tests.sh               |  4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000000..78f5992111
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,18 @@
+name: Test with Emacs
+on: [push]
+jobs:
+  test-with-emacs:
+    runs-on: ubuntu-latest
+    container:
+      image: inpefess/multi-emacs-with-python:2025.07.03
+    steps:
+      - name: Check out repository code
+        uses: actions/checkout@v4
+      - name: Install Pyrefly
+        run: |
+          /emacs-tests/.venv/bin/pip install pyrefly
+      - name: Test with Emacs
+        run: |
+          export EMACS=/emacs-tests/emacs-30.1/.local/bin/emacs
+          export PYREFLY_BIN_DIR=/emacs-tests/.venv/bin
+          ./run-tests.sh
diff --git a/run-tests.sh b/run-tests.sh
index ca0727a498..6a7ce6eeb6 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
 
 export EMACS_TEST_JUNIT_REPORT=1
-emacs --batch -L . -L tests -l test-flymake-pyrefly \
-      -f ert-run-tests-batch-and-exit
+$EMACS --batch -L . -L tests -l test-flymake-pyrefly \
+       -f ert-run-tests-batch-and-exit

Reply via email to