22
22
23
23
test_and_document :
24
24
name : Test And Generate Documentation
25
- runs-on : ubuntu-22 .04
25
+ runs-on : ubuntu-24 .04
26
26
steps :
27
27
28
28
# This step checks out a copy of your repository.
@@ -32,24 +32,31 @@ jobs:
32
32
33
33
- uses : actions/setup-python@v4
34
34
with :
35
- python-version : 3.11
35
+ python-version : 3.12
36
36
37
37
- name : Install dependencies
38
38
run : |
39
39
sudo apt-get update
40
- sudo apt-get install make python3 python3-pip tclsh
40
+ sudo apt-get install make python3 python3-pip tclsh ghdl
41
41
sudo apt-get install doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
42
42
python -m pip install --upgrade pip
43
43
pip install -r pip_requirements.txt
44
44
git clone https://github.com/slaclab/ruckus.git
45
45
pip install -r ruckus/scripts/pip_requirements.txt
46
46
47
- - name : Check for trailing whitespace
47
+ - name : Check for trailing whitespace and tabs
48
48
run : |
49
- if grep -rnI '[[:blank:]]$' --include=\*.{vhd,v,tcl,py} .; then
49
+ # Check for trailing whitespace
50
+ if grep -rnI '[[:blank:]]$' --include=\*.{vhd,tcl,py} .; then
50
51
echo "Error: Trailing whitespace found in the repository!"
51
52
exit 1
52
53
fi
54
+
55
+ # Check for tab characters instead of spaces
56
+ if grep -rnI $'\t' --include=\*.{vhd,tcl,py} .; then
57
+ echo "Error: Tab characters found in the repository! Please use spaces for indentation."
58
+ exit 1
59
+ fi
53
60
54
61
- name : Python Syntax and Linter Checking
55
62
run : |
62
69
63
70
- name : VHDL Regression Testing
64
71
run : |
65
- ./ghdl-build.sh > /dev/null 2>&1
66
72
make MODULES=$PWD
67
73
python -m pytest --cov -v tests/
68
- rm -rf ghdl-build
69
74
70
75
# # Code Coverage
71
76
# - name: Code Coverage
0 commit comments