Archisman Karmakar
commited on
Commit
·
9df22a3
1
Parent(s):
18f19fa
change to lmd
Browse files
.github/workflows/{deploy_to_HF_space.yml → deploy_to_HF_space_DIRECT.yml.ignore}
RENAMED
|
@@ -18,56 +18,49 @@ jobs:
|
|
| 18 |
with:
|
| 19 |
fetch-depth: 0
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
# - name: Set up Python
|
| 28 |
-
# uses: actions/setup-python@v4
|
| 29 |
-
# with:
|
| 30 |
-
# python-version: '3.12'
|
| 31 |
-
|
| 32 |
-
# - name: Environment Setup & Install system packages from packages.txt
|
| 33 |
-
# run: |
|
| 34 |
-
# sudo add-apt-repository universe
|
| 35 |
-
# sudo apt-get update
|
| 36 |
-
# sudo xargs -a packages.txt apt-get install -y
|
| 37 |
-
|
| 38 |
|
| 39 |
# - name: Rename Poetry files to ingore
|
| 40 |
# run: |
|
| 41 |
# mv pyproject.toml pyproject.toml.ignore
|
| 42 |
# mv poetry.lock poetry.lock.ignore
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
# - name: Rename Poetry files to original
|
| 73 |
# run: |
|
|
|
|
| 18 |
with:
|
| 19 |
fetch-depth: 0
|
| 20 |
|
| 21 |
+
- name: Set up Python
|
| 22 |
+
uses: actions/setup-python@v4
|
| 23 |
+
with:
|
| 24 |
+
python-version: '3.12'
|
| 25 |
|
| 26 |
+
- name: Environment Setup & Install system packages from packages.txt
|
| 27 |
+
run: |
|
| 28 |
+
sudo add-apt-repository universe
|
| 29 |
+
sudo apt-get update
|
| 30 |
+
sudo xargs -a packages.txt apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# - name: Rename Poetry files to ingore
|
| 33 |
# run: |
|
| 34 |
# mv pyproject.toml pyproject.toml.ignore
|
| 35 |
# mv poetry.lock poetry.lock.ignore
|
| 36 |
|
| 37 |
+
- name: Upgrade pip
|
| 38 |
+
run: python -m pip install --upgrade pip
|
| 39 |
|
| 40 |
+
- name: Install & configure Poetry
|
| 41 |
+
run: |
|
| 42 |
+
# - name: Disable Poetry virtualenv creation
|
| 43 |
+
curl -sSL https://install.python-poetry.org | python3 -
|
| 44 |
+
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
| 45 |
|
| 46 |
+
# pip install --upgrade poetry --upgrade-strategy eager
|
| 47 |
+
poetry config virtualenvs.create false
|
| 48 |
+
poetry --version
|
| 49 |
+
poetry add poetry-plugin-export
|
| 50 |
+
poetry self add poetry-plugin-export
|
| 51 |
|
| 52 |
|
| 53 |
+
- name: Install dependencies
|
| 54 |
+
run: |
|
| 55 |
+
# pip install poetry
|
| 56 |
+
# pip install --upgrade poetry --upgrade-strategy eager
|
| 57 |
+
poetry --version
|
| 58 |
+
# poetry install --no-root
|
| 59 |
+
poetry export -f requirements.txt --without-hashes --output requirements.txt
|
| 60 |
|
| 61 |
+
pip install -r requirements.txt
|
| 62 |
|
| 63 |
+
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
| 64 |
|
| 65 |
# - name: Rename Poetry files to original
|
| 66 |
# run: |
|