Skip to content

Commit

Permalink
Fine-tune github acion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Jun 30, 2021
1 parent 26b4ace commit 9444247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Run Emacs tests
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
timeout_minutes: 10
max_attempts: 3
command: cask install ; PYTHONPATH="`pwd`" cask exec ert-runner --reporter ert+duration
- name: Run Python tests
Expand Down
20 changes: 3 additions & 17 deletions test/test-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,12 @@


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Travis
;; CI
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Travis is using virtualenvs to test specific version of python
;; we need to use it as the system environment
(advice-add 'elpy-rpc-get-virtualenv-path
:around (lambda (fun &rest args)
(if (and (getenv "TRAVIS")
(or (eq elpy-rpc-virtualenv-path 'global) ;; for backward compatibility
(eq elpy-rpc-virtualenv-path 'system)))
(expand-file-name
(concat
"~/virtualenv/"
"python"
(getenv "TRAVIS_PYTHON_VERSION")))
(apply fun args))))

;; Travis regularly has some lag for some reason.
;; CI regularly has some lag for some reason.
(setq elpy-rpc-timeout 10)
;; Print elpy configuration
(when (getenv "TRAVIS")
(when (getenv "CI")
(elpy-config)
(with-current-buffer "*Elpy Config*"
(message (buffer-substring-no-properties (point-min) (point-max)))))
Expand Down

0 comments on commit 9444247

Please sign in to comment.