Update main.yml
Browse files- .github/workflows/main.yml +17 -25
.github/workflows/main.yml
CHANGED
@@ -1,27 +1,19 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
--cov=smath --cov=web tests
|
8 |
-
python -m pytest --nbval notebook.ipynb #tests our jupyter notebook
|
9 |
-
#python -m pytest -v tests/test_web.py #if you just want to test web
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
black *.py
|
23 |
-
|
24 |
-
lint:
|
25 |
-
pylint --disable=R,C *.py
|
26 |
-
|
27 |
-
all: install lint test format
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
|
|
|
|
|
|
8 |
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v2
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
- name: Push to hub
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: git push --force https://ThankGod:$HF_TOKEN@huggingface.co/spaces/ThankGod/face-id
|
|
|
|
|
|
|
|
|
|
|
|