Skip to content

Commit

Permalink
Merge pull request #20 from andreped/dev
Browse files Browse the repository at this point in the history
Added linting + filesize workflows; linting checks; removed old demo
  • Loading branch information
andreped authored Oct 4, 2023
2 parents 19716d6 + 87f4ea6 commit 2b2fc13
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 384 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/filesize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check file size
on: # or directly `on: [push]` to run the action on every push on any branch
pull_request:
branches: [ main ]

# to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
check-filesize:
runs-on: ubuntu-latest
steps:
- name: Check large files
uses: ActionsDesk/lfs-warning@v2.0
with:
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
26 changes: 26 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Linting

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install lint dependencies
run: pip install wheel setuptools black==22.3.0 isort==5.10.1 flake8==4.0.1

- name: Lint the code
run: sh shell/lint.sh
Empty file removed AeroPath/__init__.py
Empty file.
171 changes: 0 additions & 171 deletions AeroPath/gui.py

This file was deleted.

103 changes: 0 additions & 103 deletions AeroPath/inference.py

This file was deleted.

67 changes: 0 additions & 67 deletions AeroPath/utils.py

This file was deleted.

Loading

0 comments on commit 2b2fc13

Please sign in to comment.