Skip to content

Keep GitHub Actions up to date with GitHub's Dependabot #88

Keep GitHub Actions up to date with GitHub's Dependabot

Keep GitHub Actions up to date with GitHub's Dependabot #88

name: Check code and run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff check --ignore=E401,E402,E701,E722,E731,E741,F401,F403,F405,F523,F524,F811,F841
--output-format=github --line-length=2793 --show-source --target-version=py310 .
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"] # ["2.7", "3.6", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install ".[testing]"
- name: Analysing the code with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Running tests
run: |
pytest --version
# make install test work...
export PYTHONPATH=$(python -m site --user-site)
pytest tests/ --ignore=tests/system/data/ --showlocals --verbose --show-capture=all --log-level=debug