File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -44,24 +44,23 @@ jobs:
44
44
# and cause subsequent tests to fail
45
45
cat test/fixtures/.gitconfig >> ~/.gitconfig
46
46
47
- - name : Create Python virtual environment
47
+ - name : Set up virtualenv
48
48
run : |
49
49
python -m venv .venv
50
+ . .venv/bin/activate
51
+ printf '%s=%s\n' 'PATH' "$PATH" 'VIRTUAL_ENV' "$VIRTUAL_ENV" >>"$GITHUB_ENV"
50
52
51
53
- name : Update PyPA packages
52
54
run : |
53
55
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
54
- . .venv/bin/activate
55
56
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
56
57
57
58
- name : Install project and test dependencies
58
59
run : |
59
- . .venv/bin/activate
60
60
pip install ".[test]"
61
61
62
62
- name : Show version and platform information
63
63
run : |
64
- . .venv/bin/activate
65
64
uname -a
66
65
command -v git python
67
66
git version
70
69
71
70
- name : Test with pytest
72
71
run : |
73
- . .venv/bin/activate
74
72
pytest --color=yes -p no:sugar --instafail -vv
You can’t perform that action at this time.
0 commit comments