Skip to content

Commit cfc947f

Browse files
committed
Let's try with bash_profile....
1 parent b6748a8 commit cfc947f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/pre-commit_wsl.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
- name: Install pyenv in WSL
4545
shell: wsl-bash {0}
4646
run: |
47+
pwd
48+
ls -la
4749
git clone -b v2.6.11 https://github.com/pyenv/pyenv.git ~/.pyenv
4850
cd ~/.pyenv && src/configure && make -C src
4951
@@ -57,7 +59,7 @@ jobs:
5759
- name: Install python ${{matrix.python-version}} using pyenv in WSL
5860
shell: wsl-bash {0}
5961
run: |
60-
source ~/.bashrc
62+
source ~/.bash_profile
6163
pyenv install ${{matrix.python-version}}
6264
pyenv global ${{matrix.python-version}}
6365
- name: Clone repo
@@ -69,7 +71,7 @@ jobs:
6971
- name: 'Install requirements (standard or constraints ${{ matrix.python-version }})'
7072
shell: wsl-bash {0}
7173
run: |
72-
source ~/.bashrc
74+
source ~/.bash_profile
7375
cd the_repo
7476
python -mvenv .env
7577
source .env/bin/activate
@@ -97,7 +99,7 @@ jobs:
9799
- name: 'Install development requirements'
98100
shell: wsl-bash {0}
99101
run: |
100-
source ~/.bashrc
102+
source ~/.bash_profile
101103
cd the_repo
102104
source .env/bin/activate
103105
@@ -110,15 +112,15 @@ jobs:
110112
- name: 'pre-commit'
111113
shell: wsl-bash {0}
112114
run: |
113-
source ~/.bashrc
115+
source ~/.bash_profile
114116
cd the_repo
115117
source .env/bin/activate
116118
117119
pre-commit run -a
118120
- name: 'pytest + coverage (${{ matrix.python-version }})'
119121
shell: wsl-bash {0}
120122
run: |
121-
source ~/.bashrc
123+
source ~/.bash_profile
122124
cd the_repo
123125
source .env/bin/activate
124126

0 commit comments

Comments
 (0)