[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160) |
Date: |
Sun, 29 Aug 2021 11:23:16 -0400 (EDT) |
branch: elpa/julia-mode
commit 5d693ab5278d70a4cc1fee9bcd30a57a76f49886
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: GitHub <noreply@github.com>
Fix CI using actions. (#160)
* Fix CI using actions.
Factor out font locking query code.
* fix typo
* disable linter for now
---
.github/workflows/CI.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++
julia-mode-tests.el | 28 ++++++++++++++++--------
2 files changed, 74 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
new file mode 100644
index 0000000..b372ea0
--- /dev/null
+++ b/.github/workflows/CI.yml
@@ -0,0 +1,55 @@
+# uses https://github.com/leotaku/elisp-check for CI and
+# https://github.com/purcell/setup-emacs for Emacs setup
+
+name: check
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - 'releases/*'
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ emacs_version:
+ - 25.1
+ - 25.2
+ - 25.3
+ - 26.1
+ - 26.2
+ - 26.3
+ - 27.1
+ - 27.2
+ ignore_warnings:
+ - true
+ include:
+ - emacs_version: snapshot
+ ignore_warnings: false
+ steps:
+ - uses: actions/checkout@v2
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+ - name: Run ert
+ uses: leotaku/elisp-check@master
+ with:
+ check: ert
+ file: 'julia-mode-tests.el'
+ ignore_warnings: ${{ matrix.ignore_warnings }}
+ # - name: Run package-lint # FIXME disabled as failing
+ # uses: leotaku/elisp-check@master
+ # with:
+ # file: "julia-mode.el"
+ # ignore_warnings: true
+ # check: package-lint
+ - name: Run byte-compile
+ uses: leotaku/elisp-check@master
+ with:
+ file: "julia-mode.el"
+ ignore_warnings: true
+ check: byte-compile
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index 9befc9d..bb4af97 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -54,16 +54,20 @@
(should (equal (buffer-substring-no-properties (point-min) (point-max))
,to)))))
-(defmacro julia--should-font-lock (text pos face)
- "Assert that TEXT at position POS gets font-locked with FACE in
`julia-mode'."
- `(with-temp-buffer
+(defun julia--get-font-lock (text pos)
+ "Get the face of `text' at `pos' when font-locked as Julia code in this
mode."
+ (with-temp-buffer
(julia-mode)
- (insert ,text)
+ (insert text)
(if (fboundp 'font-lock-ensure)
(font-lock-ensure (point-min) (point-max))
(with-no-warnings
(font-lock-fontify-buffer)))
- (should (eq ,face (get-text-property ,pos 'face)))))
+ (get-text-property pos 'face)))
+
+(defmacro julia--should-font-lock (text pos face)
+ "Assert that TEXT at position POS gets font-locked with FACE in
`julia-mode'."
+ `(should (eq ,face (julia--get-font-lock ,text ,pos))))
(defmacro julia--should-move-point (text fun from to &optional end arg)
"With TEXT in `julia-mode', after calling FUN, the point should move FROM\
@@ -720,15 +724,21 @@ var = func(begin
(julia--should-font-lock s1 10 nil)))
(ert-deftest julia--test-char-const-font-lock ()
- (dolist (c '("'\\''" "'\\\"'" "'\\\\'" "'\\010'" "'\\xfe'" "'\\uabcd'"
- "'\\Uabcdef01'" "'\\n'" "'a'" "'z'" "'''"))
+ (dolist (c '("'\\''"
+ "'\\\"'"
+ "'\\\\'"
+ "'\\010'"
+ "'\\xfe'"
+ "'\\uabcd'"
+ "'\\Uabcdef01'"
+ "'\\n'"
+ "'a'" "'z'" "'''"))
(let ((c (format " %s " c)))
(progn
(julia--should-font-lock c 1 nil)
(julia--should-font-lock c 2 font-lock-string-face)
(julia--should-font-lock c (- (length c) 1) font-lock-string-face)
- (julia--should-font-lock c (length c) nil)
- ))))
+ (julia--should-font-lock c (length c) nil)))))
;;; Movement
(ert-deftest julia--test-beginning-of-defun-assn-1 ()
- [nongnu] elpa/julia-mode 140369e 337/352: Simplify char-regex, (continued)
- [nongnu] elpa/julia-mode 140369e 337/352: Simplify char-regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b295e36 345/352: Merge pull request #133 from non-Jedi/triple-quote-cmd, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e10a730 056/352: FFT of real vectors as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7065601 138/352: julia-mode symbol-table update from #7018, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160),
ELPA Syncer <=
- [nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a trailing =, that should take precedence over blocks., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c4a75b4 271/352: update short function syntax w.r.t. spaces, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9d08954 292/352: Update keywords and builtin types to Julia 1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9edff28 291/352: Merge pull request #68 from nverno/fix-compilation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 999569b 297/352: Update substitutions to include emoji, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3adce47 296/352: highlight ∈ in `for var ∈ …` ( fix #71 ), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 181c919 040/352: adding a full interface to select and FD sets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1332b74 262/352: update for changed type keywords in 0.6, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0f064b7 280/352: Enable color in inferior julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ec01995 285/352: Merge pull request #54 from jamii/patch-1, ELPA Syncer, 2021/08/29