Skip to content

Commit

Permalink
Fix format on workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 25, 2023
1 parent 0c475ed commit 8195938
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Test and Lint Project

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
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 ))
- 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 ))

0 comments on commit 8195938

Please sign in to comment.