Skip to content

fix: Bump old deps, fix tests #815

fix: Bump old deps, fix tests

fix: Bump old deps, fix tests #815

Workflow file for this run

name: CI checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev_requirements.txt
wget https://github.com/validator/validator/releases/download/20.6.30/vnu.linux.zip
unzip vnu.linux.zip -d /opt/vnu/
chmod +x /opt/vnu/vnu-runtime-image/bin/vnu
- name: Lint
run: |
flake8 lms --count --show-source --statistics
- name: Test
run: |
export PYTHONPATH=`pwd`
export PATH=/opt/vnu/vnu-runtime-image/bin:$PATH
pytest -vvv --junitxml=junit/test-results.xml --cov-report=xml --cov=lms ./tests
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: coverage.xml