Spaces:
Sleeping
Sleeping
jvroo
commited on
Update main.yml
Browse files- .github/workflows/main.yml +16 -0
.github/workflows/main.yml
CHANGED
|
@@ -10,6 +10,22 @@ jobs:
|
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
- uses: actions/checkout@v2
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
|
|
|
| 10 |
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
| 13 |
+
- name: Checkout code
|
| 14 |
+
uses: actions/checkout@v3
|
| 15 |
+
|
| 16 |
+
- name: Set up Python
|
| 17 |
+
uses: actions/setup-python@v4
|
| 18 |
+
with:
|
| 19 |
+
python-version: '3.8'
|
| 20 |
+
|
| 21 |
+
- name: Install dependencies
|
| 22 |
+
run: |
|
| 23 |
+
pip install -r requirements.txt
|
| 24 |
+
pip install pytest
|
| 25 |
+
|
| 26 |
+
- name: Run tests
|
| 27 |
+
run: |
|
| 28 |
+
pytest
|
| 29 |
- uses: actions/checkout@v2
|
| 30 |
with:
|
| 31 |
fetch-depth: 0
|