-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 871 Bytes
/
create-env.yml
File metadata and controls
25 lines (25 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: create-virtual-py-env
on: workflow_dispatch
jobs:
run-env-sh:
runs-on: ubuntu-latest
steps:
- name: get-code-manual
run: |
echo $GITHUB_WORKSPACE
git clone https://github.com/NeilBardhan/actions-cicd.git
- name: run-script
run: |
echo "Creating Python Virtual Environment"
cd actions-cicd
git checkout ${GITHUB_REF##*/}
# ls
# chmod +x scripts/build-venv.sh
# scripts/build-venv.sh
# pip list
/usr/bin/python3 -m pip install virtualenv
/usr/bin/python3 -m virtualenv venv
source venv/bin/activate
pip install -e .
pip install -r requirements.txt
pytest