Skip to content

Commit

Permalink
Merge pull request #7 from cgs-earth/ci
Browse files Browse the repository at this point in the history
Create flake8 GitHub Action
  • Loading branch information
webb-ben authored Mar 13, 2024
2 parents 4cd3e38 + 05c6bf9 commit afb6d3e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: flake8 ⚙️

on: [ push, pull_request ]

jobs:
main:
runs-on: ubuntu-latest

steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
architecture: x64
- name: Checkout repository
uses: actions/checkout@master
- name: Install flake8
run: pip install flake8 flake8-nb
- name: run flake8 ⚙️
run: |
find . -type f -name "*.py" | xargs flake8
- name: run flake8-notebook ⚙️
run: |
find . -type f -name "*.ipynb" | xargs flake8-nb

0 comments on commit afb6d3e

Please sign in to comment.