Try serializing steps for installing py3-venv -> creating venv
This commit is contained in:
parent
54c4643739
commit
e78ceb6910
|
@ -20,6 +20,7 @@ jobs:
|
||||||
python3 -c "print('Python is installed')"
|
python3 -c "print('Python is installed')"
|
||||||
|
|
||||||
- name: Install python3-venv
|
- name: Install python3-venv
|
||||||
|
id: install
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install python3-virtualenv -y
|
apt-get update && apt-get install python3-virtualenv -y
|
||||||
|
|
||||||
|
@ -27,6 +28,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
# https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
|
||||||
|
if: steps.install.outcome == 'success'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue