Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
36a6d2c6
Commit
36a6d2c6
authored
1 year ago
by
Jonas Haag
Browse files
Options
Downloads
Patches
Plain Diff
Add macos tests
parent
50e120f7
Branches
codeql
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/tests.yml
+5
-3
5 additions, 3 deletions
.github/workflows/tests.yml
klaus/ctagsutils.py
+6
-5
6 additions, 5 deletions
klaus/ctagsutils.py
with
11 additions
and
8 deletions
.github/workflows/tests.yml
+
5
−
3
View file @
36a6d2c6
...
...
@@ -11,7 +11,7 @@ jobs:
timeout-minutes
:
20
strategy
:
matrix
:
os
:
[
ubuntu-latest
]
os
:
[
ubuntu-latest
,
macos-latest
]
python-version
:
[
"
3.11"
]
ctags
:
[
true
]
include
:
...
...
@@ -23,8 +23,10 @@ jobs:
-
uses
:
actions/setup-python@v3
with
:
python-version
:
${{ matrix.python-version }}
-
run
:
sudo apt-get update && sudo apt-get install -y exuberant-ctags
if
:
${{ matrix.ctags }}
-
run
:
sudo apt-get update && sudo apt-get install -y universal-ctags
if
:
matrix.ctags && os == 'ubuntu-latest'
-
run
:
brew install universal-ctags
if
:
matrix.ctags && os == 'macos-latest'
-
name
:
Run tests
run
:
|
git config --global user.email "you@example.com"
...
...
This diff is collapsed.
Click to expand it.
klaus/ctagsutils.py
+
6
−
5
View file @
36a6d2c6
...
...
@@ -4,12 +4,13 @@ import shutil
import
tempfile
def
check_have_
exuberant
_ctags
():
"""
Check that the
'
ctags
'
binary is
*Exuberant* ctags (
not etags etc)
"""
def
check_have_
compatible
_ctags
():
"""
Check that the
'
ctags
'
binary is
a compatible ctags (Universal or Exuberant,
not etags etc)
"""
try
:
return
b
"
Exuberant
"
in
subprocess
.
check_output
(
out
=
subprocess
.
check_output
(
[
"
ctags
"
,
"
--version
"
],
stderr
=
subprocess
.
PIPE
)
return
b
"
Universal
"
in
out
or
b
"
Exuberant
"
in
out
except
subprocess
.
CalledProcessError
:
return
False
...
...
@@ -23,8 +24,8 @@ def create_tagsfile(git_repo_path, git_rev):
:return: path to the generated tagsfile
"""
assert
(
check_have_
exuberant
_ctags
()
),
"'
ctags
'
binary is missing or not *Exuberant* ctags
"
check_have_
compatible
_ctags
()
),
"'
ctags
'
binary is missing or not
*Universal* (or
*Exuberant*
)
ctags
"
_
,
target_tagsfile
=
tempfile
.
mkstemp
()
checkout_tmpdir
=
tempfile
.
mkdtemp
()
...
...
This diff is collapsed.
Click to expand it.
Botaniker (Bot)
@botaniker
mentioned in commit
0a2ad4d5
·
8 months ago
mentioned in commit
0a2ad4d5
mentioned in commit 0a2ad4d5ec2f1a01bd5e837dec725314e9e82cf7
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment