Skip to content

Commit

Permalink
Merge pull request #289 from gaphor/remove-ci-workaround-for-console
Browse files Browse the repository at this point in the history
Remove CI workaround for console plugin
  • Loading branch information
danyeaw committed Apr 10, 2020
2 parents 4eaf0c8 + 8cefcb9 commit 31f550b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ jobs:
needs: lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
py_ver: [3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.py_ver }}
python-version: 3.8
- name: Use Python Dependency Cache
uses: actions/cache@v1.0.3
with:
Expand Down
12 changes: 1 addition & 11 deletions gaphor/plugins/console/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,11 @@
import os
import pydoc
import sys
from rlcompleter import Completer
from typing import Dict, List

from gi.repository import Gdk, GLib, Gtk, Pango

if os.getenv("GITHUB_REF"):
# Work around issues in CI with loading rlcompleter
# https://github.com/gaphor/gaphor/issues/245
class Completer:
pass


else:
from rlcompleter import Completer


if __name__ == "__main__":
import gi

Expand Down

0 comments on commit 31f550b

Please sign in to comment.