File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,15 @@ jobs:
35
35
- name : Install Dependencies
36
36
run : |
37
37
python -m pip install --upgrade pip
38
- python -m venv ftorch
39
- . ftorch /bin/activate
38
+ python -m venv ftorch_venv
39
+ . ftorch_venv /bin/activate
40
40
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
41
- pip install fortitude-lint
42
- pip install ruff
41
+ pip install -r requirements.txt
43
42
44
43
# Run CMake build to get compile commands for clang
45
44
- name : FTorch CMake
46
45
run : |
47
- . ftorch /bin/activate
46
+ . ftorch_venv /bin/activate
48
47
export FT_DIR=$(pwd)
49
48
VN=$(python -c "import sys; print('.'.join(sys.version.split('.')[:2]))")
50
49
export Torch_DIR=${VIRTUAL_ENV}/lib/python${VN}/site-packages
59
58
if : always()
60
59
run : |
61
60
cd ${{ github.workspace }}
62
- . ftorch /bin/activate # Uses .clang-tidy config file if present
61
+ . ftorch_venv /bin/activate # Uses .clang-tidy config file if present
63
62
fortitude check src/
64
63
65
64
# Apply C++ and C linter and formatter, clang
@@ -86,13 +85,13 @@ jobs:
86
85
if : always()
87
86
run : |
88
87
cd ${{ github.workspace }}
89
- . ftorch /bin/activate
88
+ . ftorch_venv /bin/activate
90
89
fortitude check examples
91
90
92
91
- name : ruff
93
92
if : always()
94
93
run : |
95
94
cd ${{ github.workspace }}
96
- . ftorch /bin/activate
95
+ . ftorch_venv /bin/activate
97
96
ruff format --diff ./
98
97
ruff check --diff ./
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ venv/
157
157
ENV /
158
158
env.bak /
159
159
venv.bak /
160
+ ftorch_venv /
160
161
161
162
# Spyder project settings
162
163
.spyderproject
Original file line number Diff line number Diff line change
1
+ ruff == 0.7.3
2
+ fortitude-lint
3
+ clang-format == 19.1.3
4
+ clang-tidy == 19.1.0
You can’t perform that action at this time.
0 commit comments