Skip to content

Commit

Permalink
build: replace check action
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Mar 2, 2024
1 parent 9895a8f commit 7f32e28
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/check.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
push:
paths:
- '*.py'
- '!**/tests/**'

jobs:
flake8_py3:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7.4
architecture: x64
- name: Checkout PyTorch
uses: actions/checkout@master
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7f32e28

Please sign in to comment.