@@ -22,11 +22,15 @@ jobs:
2222 python-version : ${{ matrix.python }}
2323 - name : Install dependencies
2424 run : |
25- python setup.py install
26- python -m pip install --upgrade pip
27- pip install -r requirements.txt
25+ python3.10 -m venv venv
26+ source venv/bin/activate
27+ pip3 install --upgrade pip
28+ python3.10 -m pip install -r requirements.txt
29+ python3.10 setup.py install
2830 - name : Test with pytest & coverage
29- run : python -m pytest --cov=src --cov-report term --cov-report html --cov-report xml
31+ run : |
32+ source venv/bin/activate
33+ python3.10 -m pytest --cov=src --cov-report term --cov-report html --cov-report xml -vv
3034 # TODO requires activation for this repository on codecov website first.
3135 # - name: Upload coverage to Codecov
3236 # uses: codecov/codecov-action@v3
4145 python-version : " 3.10"
4246 - name : Install dependencies
4347 run : |
44- python -m pip install --upgrade pip
45- pip install -r requirements.txt
48+ python3.10 -m venv venv
49+ source venv/bin/activate
50+ pip3 install --upgrade pip
51+ python3.10 -m pip install -r requirements.txt
52+ python3.10 setup.py install
4653 - name : Lint with pylint
47- run : pylint $(git ls-files '*.py')
54+ run : |
55+ source venv/bin/activate
56+ python3.10 -m pylint $(git ls-files '*.py')
4857 - name : Lint with mypy
49- run : python -m mypy .
58+ run : |
59+ source venv/bin/activate
60+ python3.10 -m mypy .
0 commit comments