@@ -77,25 +77,35 @@ jobs:
7777 with :
7878 python-version : ${{ matrix.python-version }}
7979
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
8287
8388 - name : Install required file-formats packages
8489 run : |
90+ source venv/bin/activate
8591 pushd required-fileformats
86- python3 -m pip install --break-system-packages -r requirements.txt
92+ python -m pip install -r requirements.txt
8793 popd
8894
8995 - 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
9199
92100 - 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]
94104
95105 - 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
99109
100110 - name : Upload coverage to Codecov
101111 uses : codecov/codecov-action@v2
@@ -123,7 +133,7 @@ jobs:
123133 python-version : ' 3.11'
124134
125135 - name : Install build tools
126- run : python3 -m pip install --break-system-packages build twine
136+ run : python3 -m pip install build twine
127137
128138 - name : Build source and wheel distributions
129139 run : python3 -m build .
0 commit comments