Spaces:
Sleeping
Sleeping
Reem commited on
Commit ·
7f35eb1
1
Parent(s): ac7e4e8
v5-push_to_hf_space.yml
Browse files
.github/workflows/push_to_hf_space.yml
CHANGED
|
@@ -30,7 +30,7 @@ jobs:
|
|
| 30 |
- name: Install dependencies
|
| 31 |
run: |
|
| 32 |
pip install --upgrade pip
|
| 33 |
-
pip install flake8 nbqa
|
| 34 |
|
| 35 |
# -------------------------
|
| 36 |
# 3. Lint Python files
|
|
@@ -41,7 +41,6 @@ jobs:
|
|
| 41 |
|
| 42 |
# -------------------------
|
| 43 |
# 4. Lint notebooks with nbQA
|
| 44 |
-
# This checks .ipynb files
|
| 45 |
# -------------------------
|
| 46 |
- name: Lint notebooks
|
| 47 |
run: |
|
|
@@ -57,15 +56,13 @@ jobs:
|
|
| 57 |
exit 1
|
| 58 |
fi
|
| 59 |
|
| 60 |
-
# -------------------------
|
| 61 |
-
# 6. Placeholder for unit tests
|
| 62 |
# -------------------------
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
run: |
|
| 65 |
-
|
| 66 |
-
echo "This will later run pytest."
|
| 67 |
|
| 68 |
-
|
| 69 |
# -------------------------
|
| 70 |
# 7. Push to HuggingFace
|
| 71 |
# -------------------------
|
|
@@ -74,6 +71,3 @@ jobs:
|
|
| 74 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 75 |
run: |
|
| 76 |
git push -f https://Bachstelze:$HF_TOKEN@huggingface.co/spaces/Bachstelze/github_sync main
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
| 30 |
- name: Install dependencies
|
| 31 |
run: |
|
| 32 |
pip install --upgrade pip
|
| 33 |
+
pip install flake8 nbqa pytest
|
| 34 |
|
| 35 |
# -------------------------
|
| 36 |
# 3. Lint Python files
|
|
|
|
| 41 |
|
| 42 |
# -------------------------
|
| 43 |
# 4. Lint notebooks with nbQA
|
|
|
|
| 44 |
# -------------------------
|
| 45 |
- name: Lint notebooks
|
| 46 |
run: |
|
|
|
|
| 56 |
exit 1
|
| 57 |
fi
|
| 58 |
|
|
|
|
|
|
|
| 59 |
# -------------------------
|
| 60 |
+
# 6. Run unit tests
|
| 61 |
+
# -------------------------
|
| 62 |
+
- name: Run unit tests
|
| 63 |
run: |
|
| 64 |
+
pytest A4/ -v --tb=short
|
|
|
|
| 65 |
|
|
|
|
| 66 |
# -------------------------
|
| 67 |
# 7. Push to HuggingFace
|
| 68 |
# -------------------------
|
|
|
|
| 71 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 72 |
run: |
|
| 73 |
git push -f https://Bachstelze:$HF_TOKEN@huggingface.co/spaces/Bachstelze/github_sync main
|
|
|
|
|
|
|
|
|