Skip to content

Update tests GitHub Action #2

Update tests GitHub Action

Update tests GitHub Action #2

Workflow file for this run

name: Lint
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:

Check failure on line 16 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- uses: actions/checkout@v4
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Lint with black
uses: psf/black@stable
with:
options: "--check --diff --line-length 79"
- name: Check for debugging print statements
run: |
if grep -rq "print(" spectrum_utils; then
echo "Found the following print statements:"
grep -r "print(" spectrum_utils
exit 1
fi