Skip to content

remove cover-integ continue after test failure #70

remove cover-integ continue after test failure

remove cover-integ continue after test failure #70

Workflow file for this run

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: pwd
run: pwd
- name: ls
run: ls -lh
- 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: combine coverage
run: make coverage-combine