add -i to coverage report #15
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 #TODO return it | |
- local-coverage | |
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_unit_tests_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 | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage_integration_report | |
path: integration.coverage | |
full_coverage: | |
name: Full coverage | |
runs-on: ubuntu-latest | |
needs: [test, 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 unit tests coverage report | |
uses: actions/download-artifact@v2 | |
with: | |
name: coverage_unit_tests_report | |
path: . # where to download. file downloaded by name. | |
- name: Download integration coverage report | |
uses: actions/download-artifact@v2 | |
with: | |
name: coverage_integration_report | |
path: . # where to download. file downloaded by name. | |
- name: Display sizes | |
run: ls -lh |grep coverage | |
- name: combine coverage | |
run: make coverage-combine | |