@@ -77,25 +77,35 @@ jobs:
77
77
with :
78
78
python-version : ${{ matrix.python-version }}
79
79
80
- - name : Update build tools
81
- run : python3 -m pip install --break-system-packages --upgrade pip setuptools wheel
80
+ - name : Create virtual environment
81
+ run : python3 -m venv venv
82
+
83
+ - name : Activate virtual environment and update build tools
84
+ run : |
85
+ source venv/bin/activate
86
+ python -m pip install --upgrade pip setuptools wheel
82
87
83
88
- name : Install required file-formats packages
84
89
run : |
90
+ source venv/bin/activate
85
91
pushd required-fileformats
86
- python3 -m pip install --break-system-packages -r requirements.txt
92
+ python -m pip install -r requirements.txt
87
93
popd
88
94
89
95
- name : Install Dipy separately as it was causing trouble
90
- run : python3 -m pip install --break-system-packages dipy
96
+ run : |
97
+ source venv/bin/activate
98
+ python -m pip install dipy
91
99
92
100
- name : Install Package
93
- run : python3 -m pip install --break-system-packages .[test]
101
+ run : |
102
+ source venv/bin/activate
103
+ python -m pip install .[test]
94
104
95
105
- name : Pytest
96
- run : >-
97
- NIPYPE2PYDRA_PYDRA_TASK_TEMPLATE=$PWD/pydra-tasks-template
98
- pytest -vvs --cov nipype2pydra --cov-config .coveragerc --cov-report xml
106
+ run : |
107
+ source venv/bin/activate
108
+ NIPYPE2PYDRA_PYDRA_TASK_TEMPLATE=$PWD/pydra-tasks-template pytest -vvs --cov nipype2pydra --cov-config .coveragerc --cov-report xml
99
109
100
110
- name : Upload coverage to Codecov
101
111
uses : codecov/codecov-action@v2
@@ -123,7 +133,7 @@ jobs:
123
133
python-version : ' 3.11'
124
134
125
135
- name : Install build tools
126
- run : python3 -m pip install --break-system-packages build twine
136
+ run : python3 -m pip install build twine
127
137
128
138
- name : Build source and wheel distributions
129
139
run : python3 -m build .
0 commit comments