Spaces:
Running
Running
Update GitHub Actions config
Browse files
.github/workflows/pr-workflow.yml
CHANGED
|
@@ -12,7 +12,7 @@ jobs:
|
|
| 12 |
python-version: ["3.10"]
|
| 13 |
|
| 14 |
steps:
|
| 15 |
-
- uses: actions/checkout@
|
| 16 |
|
| 17 |
- name: Set up Python ${{ matrix.python-version }}
|
| 18 |
uses: actions/setup-python@v4
|
|
@@ -27,10 +27,10 @@ jobs:
|
|
| 27 |
|
| 28 |
- name: Run tests with coverage
|
| 29 |
run: |
|
| 30 |
-
pytest tests/ --asyncio-mode=auto --cov=src/slidedeckai --cov-report=xml --cov-report=html
|
| 31 |
|
| 32 |
- name: Upload test results and coverage
|
| 33 |
-
uses: actions/upload-artifact@
|
| 34 |
if: always()
|
| 35 |
with:
|
| 36 |
name: pytest-results
|
|
@@ -40,9 +40,8 @@ jobs:
|
|
| 40 |
retention-days: 30
|
| 41 |
|
| 42 |
- name: Coverage Report
|
| 43 |
-
uses: codecov/codecov-action@
|
| 44 |
with:
|
| 45 |
files: ./coverage.xml
|
| 46 |
fail_ci_if_error: true
|
| 47 |
verbose: true
|
| 48 |
-
|
|
|
|
| 12 |
python-version: ["3.10"]
|
| 13 |
|
| 14 |
steps:
|
| 15 |
+
- uses: actions/checkout@v4
|
| 16 |
|
| 17 |
- name: Set up Python ${{ matrix.python-version }}
|
| 18 |
uses: actions/setup-python@v4
|
|
|
|
| 27 |
|
| 28 |
- name: Run tests with coverage
|
| 29 |
run: |
|
| 30 |
+
pytest tests/unit --asyncio-mode=auto --cov=src/slidedeckai --cov-report=xml --cov-report=html
|
| 31 |
|
| 32 |
- name: Upload test results and coverage
|
| 33 |
+
uses: actions/upload-artifact@v4
|
| 34 |
if: always()
|
| 35 |
with:
|
| 36 |
name: pytest-results
|
|
|
|
| 40 |
retention-days: 30
|
| 41 |
|
| 42 |
- name: Coverage Report
|
| 43 |
+
uses: codecov/codecov-action@v4
|
| 44 |
with:
|
| 45 |
files: ./coverage.xml
|
| 46 |
fail_ci_if_error: true
|
| 47 |
verbose: true
|
|
|