branch: elpa/flymake-pyrefly commit 2ffce33ab5169d991bd60bf2eef766af337368d3 Author: Boris Shminke <bo...@shminke.com> Commit: Boris Shminke <bo...@shminke.com>
use actions --- .github/workflows/main.yml | 20 +++++++++++++++----- ci-image/Dockerfile | 14 -------------- run-tests.sh | 2 +- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78f5992111..0297182c48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,16 +3,26 @@ on: [push] jobs: test-with-emacs: runs-on: ubuntu-latest - container: - image: inpefess/multi-emacs-with-python:2025.07.03 + strategy: + fail-fast: true + matrix: + emacs_version: [26.1, 26.3, 27.2, 28.2, 29.4, 30.1] + steps: + - name: Setup Emacs + uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + - uses: actions/setup-python@v5 + with: + python-version: '3.13' - name: Check out repository code uses: actions/checkout@v4 - name: Install Pyrefly run: | - /emacs-tests/.venv/bin/pip install pyrefly + python -m venv .venv + .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 + export PYREFLY_BIN_DIR=$(pwd)/.venv/bin ./run-tests.sh diff --git a/ci-image/Dockerfile b/ci-image/Dockerfile deleted file mode 100644 index ca238e93cd..0000000000 --- a/ci-image/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM python:3.13-slim -RUN mkdir /emacs-tests -WORKDIR /emacs-tests -RUN apt-get update -RUN apt-get install -y build-essential wget libgccjit-12-dev \ - zlib1g-dev libncurses-dev texinfo python3-venv -RUN python3 -m venv .venv -RUN wget http://mirror.cyberbits.eu/gnu/emacs/emacs-30.1.tar.xz -RUN tar -xvf emacs-30.1.tar.xz -WORKDIR ./emacs-30.1 -RUN ./configure --prefix $(pwd)/.local --with-gnutls=ifavailable -RUN make -RUN make install -WORKDIR /emacs-tests diff --git a/run-tests.sh b/run-tests.sh index 6a7ce6eeb6..97a6b0c193 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 \ +emacs --batch -L . -L tests -l test-flymake-pyrefly \ -f ert-run-tests-batch-and-exit