Skip to content

Add cache & pylint ignore #3

Add cache & pylint ignore

Add cache & pylint ignore #3

Workflow file for this run

name: Test and Lint Project
on: [push, pull_request]
jobs:
build:

Check failure on line 6 in .github/workflows/test_lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pytest
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Test the code with pytest
run: |
pytest .
- name: Analysing the code with pylint
run: |
pylint --rc-file pylintrc.toml -j 0 app scripts tests && lint_result=$? || lint_result=$?
exit $(( $lint_result & 35 ))