add coverage upload and download... #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev Changes Workflow | ||
on: | ||
push: | ||
branches: | ||
- development | ||
jobs: | ||
test: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: pip | ||
- name: Install dependencies | ||
run: make dev-env | ||
- name: Run unit tests | ||
run: make full-coverage-unit-tests | ||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: full_unit_tests.coverage; | ||
# integration: | ||
# name: Integration tests | ||
# runs-on: [ self-hosted, Linux ] | ||
# container: | ||
# image: python:3.9.18 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Install dependencies | ||
# run: make dev-env | ||
# - name: Run integration tests | ||
# env: | ||
# V3IO_API: ${{ secrets.V3IO_API }} | ||
# V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }} | ||
# V3IO_FRAMESD: ${{ secrets.V3IO_FRAMESD }} | ||
# run: make coverage-integration | ||
full coverage: | ||
Check failure on line 47 in .github/workflows/push-dev.yml GitHub Actions / Dev Changes WorkflowInvalid workflow file
|
||
name: Full coverage | ||
runs-on: ubuntu-latest | ||
needs: integration | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: pip | ||
- name: Install dependencies | ||
run: make dev-env | ||
- name: Download coverage report | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: full_unit_tests.coverage | ||
- name: Display coverage report | ||
run: COVERAGE_FILE=full_unit_tests.coverage coverage report; | ||