Skip to content

Commit b6748a8

Browse files
committed
Trying to enable pyenv after its installation in a previous CI workflow step
1 parent 891dce3 commit b6748a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/pre-commit_wsl.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
- name: Install python ${{matrix.python-version}} using pyenv in WSL
5858
shell: wsl-bash {0}
5959
run: |
60+
source ~/.bashrc
6061
pyenv install ${{matrix.python-version}}
6162
pyenv global ${{matrix.python-version}}
6263
- name: Clone repo
@@ -68,6 +69,7 @@ jobs:
6869
- name: 'Install requirements (standard or constraints ${{ matrix.python-version }})'
6970
shell: wsl-bash {0}
7071
run: |
72+
source ~/.bashrc
7173
cd the_repo
7274
python -mvenv .env
7375
source .env/bin/activate
@@ -95,6 +97,7 @@ jobs:
9597
- name: 'Install development requirements'
9698
shell: wsl-bash {0}
9799
run: |
100+
source ~/.bashrc
98101
cd the_repo
99102
source .env/bin/activate
100103
@@ -107,13 +110,15 @@ jobs:
107110
- name: 'pre-commit'
108111
shell: wsl-bash {0}
109112
run: |
113+
source ~/.bashrc
110114
cd the_repo
111115
source .env/bin/activate
112116
113117
pre-commit run -a
114118
- name: 'pytest + coverage (${{ matrix.python-version }})'
115119
shell: wsl-bash {0}
116120
run: |
121+
source ~/.bashrc
117122
cd the_repo
118123
source .env/bin/activate
119124

0 commit comments

Comments
 (0)