Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Archived note

Archived note #7

Workflow file for this run

# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python
name: py2
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
py2:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['2.7']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r tests/requirements.txt
- name: flake8
run: |
flake8 --count --show-source --statistics --max-line-length=120 oeg_iv
flake8 --count --show-source --statistics --max-line-length=120 tests/test
- name: pylint
run: |
python -m pylint --rcfile .pylintrc2 oeg_iv
python -m pylint --rcfile .pylintrc2 tests/test
- name: pytest
run: |
pytest --cov=oeg_iv --cov-report xml --cov-report term:skip-covered --durations=5 tests