Skip to content

Merge pull request #90 from kayjan/v0.12.4 #249

Merge pull request #90 from kayjan/v0.12.4

Merge pull request #90 from kayjan/v0.12.4 #249

Workflow file for this run

name: Pytest
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
python -m pip install pandas
python -m pip install pydot
python -m pip install Pillow
- name: Lint with flake8
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with black
run: |
python -m pip install black
black . -l 88 --check --diff
- name: Lint with isort
run: |
python -m pip install isort
isort --profile black . --check
- name: Test with pytest
run: |
python -m pip install pytest
pytest