[FEAT][Faiss] #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting and Formatting | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint_and_format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install --no-cache-dir -r requirements.txt | |
- name: Find Python files | |
run: find swarms_torch -name "*.py" -type f -exec autopep8 --in-place --aggressive --aggressive {} + | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |