Skip to content

[TASK] Update Pytest versions #454

[TASK] Update Pytest versions

[TASK] Update Pytest versions #454

Workflow file for this run

name: Unit Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
# These have to be strings, as, e.g., 3.10 and 3.1 are NOT the same.
- "3.9"
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install gretel-synthetics
run: pip install -e .[all,test] --use-deprecated=legacy-resolver
- name: Lint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics src/
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=30 --max-line-length=120 --statistics src/
- name: Test
run: pytest -s -vv --cov src --cov-report term-missing tests/