Skip to content

MAINT: more cryptic CI fails #36

MAINT: more cryptic CI fails

MAINT: more cryptic CI fails #36

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Unit tests
on:
push:
branches: [ "main" ]
paths:
- '.github/**'
- 'build/**'
- 'tests/**'
- 'trimnami/**'
- 'setup.py'
pull_request:
branches: [ "main" ]
paths:
- '.github/**'
- 'build/**'
- 'tests/**'
- 'trimnami/**'
- 'setup.py'
permissions:
contents: read
jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest coverage
python -m pip install .

Check failure on line 52 in .github/workflows/python-app.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-app.yml

Invalid workflow file

You have an error in your yaml syntax on line 52
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test and generate coverage
run: |
coverage run -m pytest