Skip to content

add coverage upload and download... #4

add coverage upload and download...

add coverage upload and download... #4

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Dev Changes Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/push-dev.yml (Line: 47, Col: 3): The identifier 'full coverage' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
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;