Skip to content

CLN: Update ci workflows #18

CLN: Update ci workflows

CLN: Update ci workflows #18

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

Cannot define both `uses` and `steps` at the same time for the following jobs: linting
on: [push, pull_request]
jobs:
linting:
runs-on: ubuntu-latest
uses: ./.github/workflows/setup_tests.yml
with:
python-version: 3.11
steps:
- name: List dependencies
run: pip freeze
- name: Lint with isort
if: ${{ always() }}
run: isort --check-only src tests
- name: Lint with black
if: ${{ always() }}
run: black src tests
- name: Lint with flake8
if: ${{ always() }}
run: flake8 src tests