Skip to content

Revert "can only use paths XOR ignore-paths (not both)" #1071

Revert "can only use paths XOR ignore-paths (not both)"

Revert "can only use paths XOR ignore-paths (not both)" #1071

Workflow file for this run

name: linting

Check failure on line 1 in .github/workflows/linting.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linting.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
paths-ignore:
- "**.md"
- "**.rst"
- "**.ipynb"
paths:
- "deeprankcore/**"
- "tests/**"
- ".github/workflows/linting.yml"
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "**.rst"
- "**.ipynb"
paths:
- "deeprankcore/**"
- "tests/**"
- ".github/workflows/linting.yml"
jobs:
build:
if: github.event.pull_request.draft == false
name: Linting build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-python-and-package
- name: Check style against standards using prospector
run: prospector --die-on-tool-error