Skip to content

Update requirements files #520

Update requirements files

Update requirements files #520

Workflow file for this run

name: Code Coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v2
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-cov codecov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Code coverage test
run: pytest --cov-report xml --cov='./vformer/' --cov-config=.coveragerc
- name: Generate report using codecov
uses: codecov/codecov-action@v1
if: always()
with:
fail_ci_if_error: false
file: coverage.xml
env_vars: OS,PYTHON